From f730d267ea369da09953ddf0b6af5c918bed696d Mon Sep 17 00:00:00 2001 From: <> Date: Wed, 4 Aug 2010 21:27:27 +0200 Subject: [PATCH] Icon for video definitions --- src/MainWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5