]> git.sur5r.net Git - minitube/commitdiff
Icon for video definitions
author <> <>
Wed, 4 Aug 2010 19:27:27 +0000 (21:27 +0200)
committerFlavio <flavio@guodil.local>
Wed, 4 Aug 2010 19:27:27 +0000 (21:27 +0200)
src/MainWindow.cpp

index 59c09da482c789316117026e94c8f8c499fb43f0..33a8a2f6a42ce9e7b637206632e1c99d9975e514 100755 (executable)
@@ -242,6 +242,7 @@ void MainWindow::createActions() {
     addAction(volumeMuteAct);
 
     QAction *definitionAct = new QAction(this);
+    definitionAct->setIcon(QtIconLoader::icon("video-display"));
     definitionAct->setShortcuts(QList<QKeySequence>() << 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);