summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/connectionFrame.h4
-rw-r--r--src/gui/frame.cpp16
2 files changed, 8 insertions, 12 deletions
diff --git a/src/gui/connectionFrame.h b/src/gui/connectionFrame.h
index a0334bc..fe6dc95 100644
--- a/src/gui/connectionFrame.h
+++ b/src/gui/connectionFrame.h
@@ -144,8 +144,8 @@ public Q_SLOTS:
protected:
//virtual void paintEvent(QPaintEvent *event);
void mouseReleaseEvent ( QMouseEvent * e );
- virtual void enterEvent ( QEvent * event );
- virtual void leaveEvent ( QEvent * event );
+ virtual void enterEvent ( QEvent * event );
+ virtual void leaveEvent ( QEvent * event );
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
//void mouseReleaseEvent ( QMouseEvent * event );
diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp
index 7b3bf16..6054065 100644
--- a/src/gui/frame.cpp
+++ b/src/gui/frame.cpp
@@ -36,13 +36,10 @@ Frame::Frame(const QString & text, QWidget * parent) :
Y = 0;
setBackgroundRole(QPalette::Base);
- setStyleSheet(QString::fromUtf8("QLabel{border-radius:10px;\n"
- "background-color: rgb(150,150,150);}"));
-
- setAlignment(Qt::AlignCenter);
+ setAlignment(Qt::AlignCenter);
setAutoFillBackground(true);
- setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
+ setFrameStyle(QFrame::StyledPanel | QFrame::Plain);
_isLocked = false;
_dozent = false;
@@ -82,7 +79,6 @@ Frame::Frame(const QString & text, QWidget * parent) :
_specialEventTimer->setSingleShot(true);
connect(_specialEventTimer, SIGNAL(timeout()), this, SLOT(showSpecialEventMenu()));
- setStyleSheet("background-color: #DCDCDC;border: 0px solid #DCDCDC;");
}
Frame::~Frame()
@@ -294,19 +290,17 @@ QToolButton* Frame::createToolButton(const QString &toolTip, const QIcon &icon,
QToolButton *button = new QToolButton(this);
button->setToolTip(toolTip);
button->setIcon(icon);
- button->setIconSize(QSize(15, 15));
- button->setStyleSheet(QString::fromUtf8("background-color: rgb(230, 230, 230);"));
+ button->setIconSize(QSize(30, 30));
addButton(button);
toolButtonList.append(button);
connect(button, SIGNAL(clicked()), this, member);
-
return button;
}
void Frame::addButton(QToolButton *button)
{
button->move(X,Y);
- Y += button->size().height()-5;
+ Y += button->size().height() + 10;
}
void Frame::setToolButtonListVisible(bool visible)
@@ -505,6 +499,7 @@ void Frame::updateMousePosition(QMouseEvent* event)
void Frame::enterEvent(QEvent* event)
{
+ QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
_mouseOver = true;
if(_remoteControlEnabled)
{
@@ -514,6 +509,7 @@ void Frame::enterEvent(QEvent* event)
void Frame::leaveEvent(QEvent* event)
{
+ QApplication::setOverrideCursor(QCursor(Qt::OpenHandCursor));
_mouseOver = false;
if(_remoteControlEnabled)
{