static foreground and background for tool tips

preferencesAboutTextFull
Ivan Ilin 13 years ago
parent 2f245a94fa
commit 0ac61a5e43
  1. 7
      src/gui/UBMainWindow.cpp

@ -31,6 +31,13 @@ UBMainWindow::UBMainWindow(QWidget *parent, Qt::WindowFlags flags)
{ {
Ui::MainWindow::setupUi(this); Ui::MainWindow::setupUi(this);
//Setting tooltip colors staticly, since they look not quite well on different color themes
QPalette toolTipPalette;
toolTipPalette.setColor(QPalette::ToolTipBase, QColor("#FFFFDC"));
toolTipPalette.setColor(QPalette::ToolTipText, Qt::black);
QToolTip::setPalette(toolTipPalette);
QWidget* centralWidget = new QWidget(this); QWidget* centralWidget = new QWidget(this);
mStackedLayout = new QStackedLayout(centralWidget); mStackedLayout = new QStackedLayout(centralWidget);
setCentralWidget(centralWidget); setCentralWidget(centralWidget);

Loading…
Cancel
Save