refactor: Define tooltip style in single css file and pass it to QApplication

This commit is contained in:
Eberhard Graether
2015-12-17 13:45:02 +01:00
parent b107fd2655
commit 32cc49b0fd
8 changed files with 4 additions and 37 deletions
-6
View File
@@ -130,9 +130,3 @@
#code_file #minimize_button:enabled {
border-image: url(data/gui/code_view/images/minimize_active.png);
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
@@ -1,9 +1,3 @@
QGraphicsView, QGraphicsScene {
background-color: <color:graph/background>;
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
@@ -27,9 +27,3 @@ QPushButton:pressed {
border-bottom-right-radius: 12px;
border-top-right-radius: 12px;
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
@@ -57,9 +57,3 @@ QPushButton#search_button {
#search_button:pressed {
background: <color:search/button/press>;
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
@@ -75,9 +75,3 @@ QLineEdit:disabled {
color: white;
background: #2D3F85;
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
@@ -32,9 +32,3 @@ QPushButton:hover {
QPushButton:pressed {
background: <color:search/button/press>;
}
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>pt;
}
+1 -1
View File
@@ -9,7 +9,7 @@ public:
PlayerB = 4
};
static Token Opponent( oken token );
static Token Opponent( Token token );
struct Move {
int row;
+3
View File
@@ -10,6 +10,7 @@
#include "component/view/View.h"
#include "component/view/CompositeView.h"
#include "qt/utility/utilityQt.h"
#include "qt/view/QtViewWidgetWrapper.h"
#include "settings/ApplicationSettings.h"
#include "utility/file/FileSystem.h"
@@ -92,6 +93,8 @@ QtMainWindow::QtMainWindow()
QApplication* app = dynamic_cast<QApplication*>(QCoreApplication::instance());
app->installEventFilter(new MouseReleaseFilter(this));
app->setStyleSheet(utility::getStyleSheet("data/gui/tooltip.css").c_str());
m_recentProjectAction = new QAction*[ApplicationSettings::MaximalAmountOfRecentProjects];
setupProjectMenu();