Changeset View
Changeset View
Standalone View
Standalone View
apps/kmix.cpp
Show All 30 Lines | |||||
31 | #include <QCursor> | 31 | #include <QCursor> | ||
32 | #include <QString> | 32 | #include <QString> | ||
33 | #include <QTabWidget> | 33 | #include <QTabWidget> | ||
34 | #include <QPointer> | 34 | #include <QPointer> | ||
35 | #include <QHash> | 35 | #include <QHash> | ||
36 | 36 | | |||
37 | // include files for KDE | 37 | // include files for KDE | ||
38 | #include <KGlobalAccel> | 38 | #include <KGlobalAccel> | ||
39 | #include <kiconloader.h> | | |||
40 | #include <kmessagebox.h> | 39 | #include <kmessagebox.h> | ||
41 | #include <klocalizedstring.h> | 40 | #include <klocalizedstring.h> | ||
42 | #include <kconfig.h> | 41 | #include <kconfig.h> | ||
43 | #include <kstandardaction.h> | 42 | #include <kstandardaction.h> | ||
44 | #include <kxmlguifactory.h> | 43 | #include <kxmlguifactory.h> | ||
45 | #include <kactioncollection.h> | 44 | #include <kactioncollection.h> | ||
46 | #include <KProcess> | 45 | #include <KProcess> | ||
47 | 46 | | |||
▲ Show 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | |||||
262 | } | 261 | } | ||
263 | 262 | | |||
264 | void KMixWindow::initActionsAfterInitMixer() | 263 | void KMixWindow::initActionsAfterInitMixer() | ||
265 | { | 264 | { | ||
266 | // Only show the new tab widget if Pulseaudio is not used. Hint: The Pulseaudio backend always | 265 | // Only show the new tab widget if Pulseaudio is not used. Hint: The Pulseaudio backend always | ||
267 | // runs with 4 fixed Tabs. | 266 | // runs with 4 fixed Tabs. | ||
268 | if (!Mixer::pulseaudioPresent()) | 267 | if (!Mixer::pulseaudioPresent()) | ||
269 | { | 268 | { | ||
270 | QPixmap cornerNewPM = KIconLoader::global()->loadScaledIcon("tab-new", KIconLoader::Toolbar, | | |||
271 | devicePixelRatioF(), IconSize(KIconLoader::Toolbar)); | | |||
272 | QPushButton* _cornerLabelNew = new QPushButton(); | 269 | QPushButton* _cornerLabelNew = new QPushButton(); | ||
273 | _cornerLabelNew->setIcon(cornerNewPM); | 270 | _cornerLabelNew->setIcon(QIcon::fromTheme("tab-new")); | ||
274 | _cornerLabelNew->setToolTip(i18n("Add new view")); | 271 | _cornerLabelNew->setToolTip(i18n("Add new view")); | ||
275 | //cornerLabelNew->setSizePolicy(QSizePolicy()); | 272 | //cornerLabelNew->setSizePolicy(QSizePolicy()); | ||
276 | m_wsMixers->setCornerWidget(_cornerLabelNew, Qt::TopLeftCorner); | 273 | m_wsMixers->setCornerWidget(_cornerLabelNew, Qt::TopLeftCorner); | ||
277 | connect(_cornerLabelNew, SIGNAL(clicked()), SLOT(newView())); | 274 | connect(_cornerLabelNew, SIGNAL(clicked()), SLOT(newView())); | ||
278 | } | 275 | } | ||
279 | } | 276 | } | ||
280 | 277 | | |||
281 | void KMixWindow::initPrefDlg() | 278 | void KMixWindow::initPrefDlg() | ||
▲ Show 20 Lines • Show All 1022 Lines • Show Last 20 Lines |