Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfiguratoritems.cpp
Show All 13 Lines | |||||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
15 | * GNU General Public License for more details. * | 15 | * GNU General Public License for more details. * | ||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
19 | *****************************************************************************/ | 19 | *****************************************************************************/ | ||
20 | 20 | | |||
21 | #include "konfiguratoritems.h" | 21 | #include "konfiguratoritems.h" | ||
22 | | ||||
22 | #include "../krglobal.h" | 23 | #include "../krglobal.h" | ||
24 | #include "../icon.h" | ||||
23 | 25 | | |||
24 | // QtCore | 26 | // QtCore | ||
25 | #include <QMetaMethod> | 27 | #include <QMetaMethod> | ||
26 | // QtGui | 28 | // QtGui | ||
27 | #include <QPainter> | 29 | #include <QPainter> | ||
28 | #include <QPen> | 30 | #include <QPen> | ||
29 | #include <QPixmap> | 31 | #include <QPixmap> | ||
30 | // QtWidgets | 32 | // QtWidgets | ||
31 | #include <QColorDialog> | 33 | #include <QColorDialog> | ||
32 | #include <QFontDialog> | 34 | #include <QFontDialog> | ||
33 | #include <QLabel> | 35 | #include <QLabel> | ||
34 | 36 | | |||
35 | #include <KCompletion/KLineEdit> | 37 | #include <KCompletion/KLineEdit> | ||
36 | #include <KConfigCore/KSharedConfig> | 38 | #include <KConfigCore/KSharedConfig> | ||
37 | #include <KI18n/KLocalizedString> | 39 | #include <KI18n/KLocalizedString> | ||
38 | #include <KIconThemes/KIconLoader> | 40 | | ||
39 | 41 | | |||
40 | KonfiguratorExtension::KonfiguratorExtension(QObject *obj, QString cfgGroup, QString cfgName, | 42 | KonfiguratorExtension::KonfiguratorExtension(QObject *obj, QString cfgGroup, QString cfgName, | ||
41 | bool restartNeeded, int page) | 43 | bool restartNeeded, int page) | ||
42 | : QObject(), objectPtr(obj), applyConnected(false), setDefaultsConnected(false), changed(false), | 44 | : QObject(), objectPtr(obj), applyConnected(false), setDefaultsConnected(false), changed(false), | ||
43 | restartNeeded(restartNeeded), subpage(page), configGroup(cfgGroup), configName(cfgName) | 45 | restartNeeded(restartNeeded), subpage(page), configGroup(cfgGroup), configName(cfgName) | ||
44 | { | 46 | { | ||
45 | } | 47 | } | ||
46 | 48 | | |||
▲ Show 20 Lines • Show All 381 Lines • ▼ Show 20 Line(s) | 422 | { | |||
428 | pLabel = new QLabel(this); | 430 | pLabel = new QLabel(this); | ||
429 | pLabel->setMinimumWidth(150); | 431 | pLabel->setMinimumWidth(150); | ||
430 | layout->addWidget(pLabel); | 432 | layout->addWidget(pLabel); | ||
431 | 433 | | |||
432 | pToolButton = new QToolButton(this); | 434 | pToolButton = new QToolButton(this); | ||
433 | 435 | | |||
434 | connect(pToolButton, SIGNAL(clicked()), this, SLOT(slotBrowseFont())); | 436 | connect(pToolButton, SIGNAL(clicked()), this, SLOT(slotBrowseFont())); | ||
435 | 437 | | |||
436 | pToolButton->setIcon(SmallIcon("document-open")); | 438 | pToolButton->setIcon(Icon("document-open")); | ||
437 | layout->addWidget(pToolButton); | 439 | layout->addWidget(pToolButton); | ||
438 | 440 | | |||
439 | loadInitialValue(); | 441 | loadInitialValue(); | ||
440 | } | 442 | } | ||
441 | 443 | | |||
442 | KonfiguratorFontChooser::~KonfiguratorFontChooser() | 444 | KonfiguratorFontChooser::~KonfiguratorFontChooser() | ||
443 | { | 445 | { | ||
444 | delete ext; | 446 | delete ext; | ||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |