Changeset View
Changeset View
Standalone View
Standalone View
kcms/emoticons/emoticonslist.cpp
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 101 | { | |||
---|---|---|---|---|---|
102 | enableButtonOk(!leText->text().isEmpty() && !emoticon.isEmpty()); | 102 | enableButtonOk(!leText->text().isEmpty() && !emoticon.isEmpty()); | ||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | K_PLUGIN_FACTORY(EmoticonsFactory, registerPlugin<EmoticonList>();) | 105 | K_PLUGIN_FACTORY(EmoticonsFactory, registerPlugin<EmoticonList>();) | ||
106 | 106 | | |||
107 | EmoticonList::EmoticonList(QWidget *parent, const QVariantList &args) | 107 | EmoticonList::EmoticonList(QWidget *parent, const QVariantList &args) | ||
108 | : KCModule(parent, args) | 108 | : KCModule(parent, args) | ||
109 | { | 109 | { | ||
110 | KAboutData *about = new KAboutData(QStringLiteral("kcm_emoticons"), i18n("Emoticons"), QStringLiteral("1.0"), QString(), KAboutLicense::GPL); | 110 | KAboutData *about = new KAboutData(QStringLiteral("kcm_emoticons"), i18n("Choose the emoticon theme"), QStringLiteral("1.0"), QString(), KAboutLicense::GPL); | ||
111 | setAboutData(about); | 111 | setAboutData(about); | ||
112 | // setButtons(Apply | Help); | 112 | // setButtons(Apply | Help); | ||
113 | setupUi(this); | 113 | setupUi(this); | ||
114 | btAdd->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | 114 | btAdd->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | ||
115 | btEdit->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename"))); | 115 | btEdit->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename"))); | ||
116 | btRemoveEmoticon->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); | 116 | btRemoveEmoticon->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); | ||
117 | btNew->setIcon(QIcon::fromTheme(QStringLiteral("document-new"))); | 117 | btNew->setIcon(QIcon::fromTheme(QStringLiteral("document-new"))); | ||
118 | btGetNew->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff"))); | 118 | btGetNew->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff"))); | ||
▲ Show 20 Lines • Show All 371 Lines • Show Last 20 Lines |