[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete/config/appearance
From: Laurent Montel <montel () kde ! org>
Date: 2005-12-13 13:46:38
Message-ID: 1134481598.954308.18330.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 488173 by mlaurent:
Fix update button when we check/uncheck use economicons
(now knewstuff works fine, is it possible to activate
by default "get new theme" ? )
M +12 -1 appearanceconfig.cpp
M +2 -1 appearanceconfig.h
--- branches/KDE/3.5/kdenetwork/kopete/kopete/config/appearance/appearanceconfig.cpp #488172:488173
@@ -314,6 +314,8 @@
mPrfsEmoticons = new AppearanceConfig_Emoticons(mAppearanceTabCtl);
connect(mPrfsEmoticons->chkUseEmoticons, SIGNAL(toggled(bool)),
this, SLOT(emitChanged()));
+ connect(mPrfsEmoticons->chkUseEmoticons, SIGNAL(toggled(bool)),
+ this, SLOT(updateEmoticonsButton(bool)));
connect(mPrfsEmoticons->chkRequireSpaces, SIGNAL(toggled(bool)),
this, SLOT(emitChanged()));
connect(mPrfsEmoticons->icon_theme_list, SIGNAL(selectionChanged()),
@@ -322,7 +324,8 @@
this, SLOT(installNewTheme()));
// Since KNewStuff is incomplete and buggy we'll disable it by default.
- mPrfsEmoticons->btnGetThemes->setEnabled( config->readBoolEntry( "ForceNewStuff", false ) );
+ m_allowDownloadTheme = config->readBoolEntry( "ForceNewStuff", false );
+ mPrfsEmoticons->btnGetThemes->setEnabled( m_allowDownloadTheme );
connect(mPrfsEmoticons->btnGetThemes, SIGNAL(clicked()),
this, SLOT(slotGetThemes()));
connect(mPrfsEmoticons->btnRemoveTheme, SIGNAL(clicked()),
@@ -467,6 +470,14 @@
delete d;
}
+void AppearanceConfig::updateEmoticonsButton(bool _b)
+{
+ QString themeName = mPrfsEmoticons->icon_theme_list->currentText();
+ QFileInfo fileInf(KGlobal::dirs()->findResource("emoticons", themeName+"/"));
+ mPrfsEmoticons->btnRemoveTheme->setEnabled( _b && fileInf.isWritable());
+ mPrfsEmoticons->btnGetThemes->setEnabled( m_allowDownloadTheme );
+}
+
void AppearanceConfig::save()
{
// kdDebug(14000) << k_funcinfo << "called." << endl;
--- branches/KDE/3.5/kdenetwork/kopete/kopete/config/appearance/appearanceconfig.h #488172:488173
@@ -80,7 +80,7 @@
void removeSelectedTheme();
void slotGetThemes();
void slotGetStyles();
-
+ void updateEmoticonsButton(bool);
private:
void updateHighlight();
QString fileContents(const QString &path);
@@ -108,6 +108,7 @@
QString currentStyle;
bool loading;
bool styleChanged;
+ bool m_allowDownloadTheme;
KopeteAppearanceConfigPrivate *d;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic