}
}
+void THBlackBar::leaveEvent(QEvent *event) {
+ // status tip
+ QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(qApp->topLevelWidgets().first());
+ if (mainWindow) mainWindow->statusBar()->clearMessage();
+}
+
QAction *THBlackBar::hoveredAction (const QPoint& pos) const {
if (pos.y() <= 0 || pos.y() >= height())
return(NULL);
void mouseMoveEvent (QMouseEvent *event);
void mousePressEvent (QMouseEvent *event);
+ void leaveEvent(QEvent *event);
private:
void drawUnselectedButton ( QPainter *painter,