From: <> Date: Wed, 4 Aug 2010 19:27:27 +0000 (+0200) Subject: Icon for video definitions X-Git-Tag: 1.2~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f730d267ea369da09953ddf0b6af5c918bed696d;p=minitube Icon for video definitions --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 59c09da..33a8a2f 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -242,6 +242,7 @@ void MainWindow::createActions() { addAction(volumeMuteAct); QAction *definitionAct = new QAction(this); + definitionAct->setIcon(QtIconLoader::icon("video-display")); definitionAct->setShortcuts(QList() << QKeySequence(Qt::CTRL + Qt::Key_D)); /* QMenu *definitionMenu = new QMenu(this); @@ -394,7 +395,8 @@ void MainWindow::createStatusBar() { statusBar()->setStyleSheet("::item{border:0 solid} QToolBar {padding:0;spacing:0;margin:0}"); QToolBar *toolBar = new QToolBar(this); - toolBar->setToolButtonStyle(Qt::ToolButtonTextOnly); + toolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); + toolBar->setIconSize(QSize(16, 16)); toolBar->addAction(The::globalActions()->value("definition")); statusBar()->addPermanentWidget(toolBar);