Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/profilemanager.cpp
Show All 24 Lines | |||||
25 | // QtWidgets | 25 | // QtWidgets | ||
26 | #include <QInputDialog> | 26 | #include <QInputDialog> | ||
27 | #include <QMenu> | 27 | #include <QMenu> | ||
28 | 28 | | |||
29 | #include <KConfigCore/KSharedConfig> | 29 | #include <KConfigCore/KSharedConfig> | ||
30 | #include <KI18n/KLocalizedString> | 30 | #include <KI18n/KLocalizedString> | ||
31 | 31 | | |||
32 | #include "../krglobal.h" | 32 | #include "../krglobal.h" | ||
33 | #include "../icon.h" | ||||
33 | 34 | | |||
34 | ProfileManager::ProfileManager(QString profileType, QWidget * parent) | 35 | ProfileManager::ProfileManager(QString profileType, QWidget * parent) | ||
35 | : QPushButton(parent) | 36 | : QPushButton(parent) | ||
36 | { | 37 | { | ||
37 | setText(""); | 38 | setText(""); | ||
38 | setIcon(QIcon::fromTheme("user-identity")); | 39 | setIcon(Icon("user-identity")); | ||
39 | setFixedWidth(16 + 15); | 40 | setFixedWidth(16 + 15); | ||
40 | setToolTip(i18n("Profiles")); | 41 | setToolTip(i18n("Profiles")); | ||
41 | 42 | | |||
42 | this->profileType = profileType; | 43 | this->profileType = profileType; | ||
43 | 44 | | |||
44 | connect(this, SIGNAL(clicked()), this, SLOT(profilePopup())); | 45 | connect(this, SIGNAL(clicked()), this, SLOT(profilePopup())); | ||
45 | 46 | | |||
46 | KConfigGroup group(krConfig, "Private"); | 47 | KConfigGroup group(krConfig, "Private"); | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |