You can also use my RSS feed. If you pass that script additional HTTP GET queries (a '?' followed by key=value pairs, separated by '&') you can do some cool filtering. "descriptions=yes" adds a <description> field, "descriptionfilter=yes" formats those for HTML a bit. "dir" followed by the name of a cvs module limits you only to directories whose name contains that string.
You may also specifier "author" as the name of the person who commited it (that is, whatever the "From" field says in the cvs emails). A
KDE/kdeedu/cantor/src
2010 September 10 18:09 UTC
SVN commit 1173897 by arieder:
make tabs movable.
CCMAIL: ngativ@gmail.com
M +1 -0 cantor.cpp
--- trunk/KDE/kdeedu/cantor/src/cantor.cpp #1173896:1173897
@@ -81,6 +81,7 @@
m_tabWidget=new KTabWidget(this);
m_tabWidget->setCloseButtonEnabled(true);
+ m_tabWidget->setMovable( true );
setCentralWidget(m_tabWidget);
connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(activateWorksheet(int)));
www/sites/bugs
2010 September 10 18:09 UTC
SVN commit 1173896 by toma:
Add 4.5.1 and 4.4.6 while I'm there.
BUG=249854
M +2 -1 template/bug/create/create-guided.html.tmpl
M +2 -2 wizard.cgi
--- trunk/www/sites/bugs/template/bug/create/create-guided.html.tmpl #1173895:1173896
@@ -216,8 +216,9 @@
<select name="kdeversion">
<option value="---" selected="selected">-- Please Select Your KDE Version --</option>
<option value="Devel">Recent SVN or Snapshot Version</option>
+ <option value="KDE 4.5.1">KDE 4.5.1</option>
<option value="KDE 4.5.0">KDE 4.5.0</option>
- <option value="KDE 4.4.95">KDE 4.5 RC3</option>
+ <option value="KDE 4.4.6">KDE 4.4.6</option>
<option value="KDE 4.4.5">KDE 4.4.5</option>
<option value="KDE 4.4.4">KDE 4.4.4</option>
<option value="KDE 4.4.3">KDE 4.4.3</option>
--- trunk/www/sites/bugs/wizard.cgi #1173895:1173896
@@ -28,8 +28,8 @@
my $cgi = Bugzilla->cgi;
my @minimumKDEVersion = ( 4, 3, 0 );
-my @currentKDEVersion = ( 4, 5, 0 );
-my @develKDEVersion = ( 4, 5, 0 );
+my @currentKDEVersion = ( 4, 5, 1 );
+my @develKDEVersion = ( 4, 5, 1 );
my @khtmlMinVersion = ( 4, 0, 0 );
KDE/kdelibs/kioslave/http/kcookiejar
2010 September 10 18:09 UTC
SVN commit 1173895 by orlovich:
Merged revision:r1173894 | orlovich | 2010-09-10 14:26:06 -0400 (Fri, 10 Sep 2010) | 3 lines
Fix parsing of cookies marked as cross-domain by kio_http.
(Noticed while debugging disqus stuff)
M +7 -5 kcookiejar.cpp
--- trunk/KDE/kdelibs/kioslave/http/kcookiejar/kcookiejar.cpp #1173894:1173895
@@ -684,17 +684,19 @@
KDateTime epoch;
epoch.setTime_t(0);
- // The hard stuff :)
- for(;;)
- {
- // check for "Set-Cookie"
+ // Check for cross-domain flag from kio_http
if (strncmp(cookieStr, "Cross-Domain\n", 13) == 0)
{
cookieStr += 13;
crossDomain = true;
}
- else if (strncasecmp(cookieStr, "Set-Cookie:", 11) == 0)
+
+ // The hard stuff :)
+ for(;;)
{
+ // check for "Set-Cookie"
+ if (strncasecmp(cookieStr, "Set-Cookie:", 11) == 0)
+ {
cookieStr = parseNameValue(cookieStr+11, Name, Value, true);
// Host = FQDN
branches/KDE/4.5/kdelibs/kioslave/http/kcookiejar
2010 September 10 18:09 UTC
SVN commit 1173894 by orlovich:
Fix parsing of cookies marked as cross-domain by kio_http.
(Noticed while debugging disqus stuff)
M +7 -5 kcookiejar.cpp
--- branches/KDE/4.5/kdelibs/kioslave/http/kcookiejar/kcookiejar.cpp #1173893:1173894
@@ -684,17 +684,19 @@
KDateTime epoch;
epoch.setTime_t(0);
- // The hard stuff :)
- for(;;)
- {
- // check for "Set-Cookie"
+ // Check for cross-domain flag from kio_http
if (strncmp(cookieStr, "Cross-Domain\n", 13) == 0)
{
cookieStr += 13;
crossDomain = true;
}
- else if (strncasecmp(cookieStr, "Set-Cookie:", 11) == 0)
+
+ // The hard stuff :)
+ for(;;)
{
+ // check for "Set-Cookie"
+ if (strncasecmp(cookieStr, "Set-Cookie:", 11) == 0)
+ {
cookieStr = parseNameValue(cookieStr+11, Name, Value, true);
// Host = FQDN
www/patches/mediawiki/skins/chihuahua
2010 September 10 18:09 UTC
SVN commit 1173893 by messmer:
adjusted list item spacing and indentation again
M +10 -1 css.php
--- trunk/www/patches/mediawiki/skins/chihuahua/css.php #1173892:1173893
@@ -386,7 +386,7 @@
#main ol, #main ul {
list-style-position: outside;
- padding-left: 18px;
+ padding-left: 40px;
}
#main ol { list-style-type:decimal; }
@@ -396,6 +396,15 @@
list-style-type:circle;
}
+ #main li {
+ margin-top: 5px;
+ }
+
+ #main ul:first-child,
+ #main ol:first-child {
+ margin-top: 0;
+ }
+
#main li ul {
list-style-image:url(images/list-square.png);
list-style-type:square;
l10n-kde4/ca/messages
2010 September 10 18:09 UTC
SVN commit 1173892 by jferrer:
Updates by Josep Ma. Ferrer
M +12 -15 extragear-sdk/desktop_extragear-sdk_kdevelop.po
M +23 -22 extragear-sdk/desktop_extragear-sdk_kdevplatform.po
M +3 -3 extragear-sdk/kdevcmake.po
M +5 -5 extragear-sdk/kdevcpp.po
M +2 -3 extragear-sdk/kdevelop.po
M +6 -5 extragear-sdk/kdevgrepview.po
M +9 -15 extragear-sdk/kdevmakebuilder.po
M +14 -15 extragear-sdk/kdevpatchreview.po
M +7 -8 extragear-sdk/kdevphp.po
M +77 -103 extragear-sdk/kdevplatform.po
M +7 -7 extragear-sdk/kdevprojectmanagerview.po
M +5 -8 koffice/koffice.po
M +101 -200 koffice/kspread.po
http://websvn.kde.org/?view=rev&revision=1173892
branches/stable/l10n-kde4/ca/messages
2010 September 10 18:09 UTC
SVN commit 1173891 by jferrer:
Updates by Josep Ma. Ferrer
M +12 -15 extragear-sdk/desktop_extragear-sdk_kdevelop.po
M +23 -22 extragear-sdk/desktop_extragear-sdk_kdevplatform.po
M +3 -3 extragear-sdk/kdevcmake.po
M +9 -8 extragear-sdk/kdevcpp.po
M +5 -5 extragear-sdk/kdevelop.po
M +6 -5 extragear-sdk/kdevgrepview.po
M +12 -21 extragear-sdk/kdevmakebuilder.po
M +15 -16 extragear-sdk/kdevpatchreview.po
M +7 -8 extragear-sdk/kdevphp.po
M +92 -115 extragear-sdk/kdevplatform.po
M +7 -7 extragear-sdk/kdevprojectmanagerview.po
M +5 -8 koffice/koffice.po
M +102 -200 koffice/kspread.po
http://websvn.kde.org/?view=rev&revision=1173891
l10n-kde4/fr/messages/kdesdk
2010 September 10 18:09 UTC
SVN commit 1173890 by grossard:
replaced "référentiel" by "dépôt"
M +68 -67 cervisia.po
M +7 -5 cvsservice.po
--- trunk/l10n-kde4/fr/messages/kdesdk/cervisia.po #1173889:1173890
@@ -13,20 +13,21 @@
# Nicolas Ternisien <nicolas.ternisien@gmail.com>, 2005.
# Joelle Cornavin <jcornavi@kde-france.org>, 2005.
# Matthieu Robin <matthieu@macolu.org>, 2005.
-# Ludovic Grossard <grossard@kde.org>, 2007, 2008, 2009.
+# Ludovic Grossard <grossard@kde.org>, 2007, 2008, 2009, 2010.
# Ludovic grossard <grossard@kde.org>, 2009.
msgid ""
msgstr ""
"Project-Id-Version: cervisia\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-08-22 05:48+0200\n"
-"PO-Revision-Date: 2009-12-18 06:55+0100\n"
+"POT-Creation-Date: 2010-09-09 01:35+0200\n"
+"PO-Revision-Date: 2010-09-10 20:03+0200\n"
"Last-Translator: Ludovic Grossard <grossard@kde.org>\n"
"Language-Team: French <kde-francophone@kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Lokalize 1.1\n"
#: addignoremenu.cpp:38
msgid "Add to Ignore List"
@@ -58,15 +59,15 @@
#: addremovedialog.cpp:56
msgid "Add the following files to the repository:"
-msgstr "Ajouter les fichiers suivants au référentiel :"
+msgstr "Ajouter les fichiers suivants au dépôt :"
#: addremovedialog.cpp:57
msgid "Add the following binary files to the repository:"
-msgstr "Ajouter les fichiers binaires suivants au référentiel :"
+msgstr "Ajouter les fichiers binaires suivants au dépôt :"
#: addremovedialog.cpp:58
msgid "Remove the following files from the repository:"
-msgstr "Supprimer les fichiers suivants du référentiel :"
+msgstr "Supprimer les fichiers suivants du dépôt :"
#: addremovedialog.cpp:75
msgid "This will also remove the files from your local working copy."
@@ -75,16 +76,16 @@
#: addrepositorydialog.cpp:44
msgid "Add Repository"
-msgstr "Ajouter un référentiel"
+msgstr "Ajouter un dépôt"
#: addrepositorydialog.cpp:57 checkoutdialog.cpp:87
msgid "&Repository:"
-msgstr "&Référentiel :"
+msgstr "&Dépôt :"
#: addrepositorydialog.cpp:70
msgid "Use remote &shell (only for :ext: repositories):"
msgstr ""
-"Utiliser un &shell distant (uniquement pour les référentiels du type « :"
+"Utiliser un &shell distant (uniquement pour les dépôts du type « :"
"ext: ») :"
#: addrepositorydialog.cpp:77
@@ -101,7 +102,7 @@
#: addrepositorydialog.cpp:186
msgid "Repository Settings"
-msgstr "Paramètres du référentiel"
+msgstr "Paramètres du dépôt"
#: annotatecontroller.cpp:80
#, kde-format
@@ -235,7 +236,7 @@
#: cervisiapart.cpp:299
msgid "&Add to Repository..."
-msgstr "A&jouter au référentiel..."
+msgstr "A&jouter au dépôt..."
#: cervisiapart.cpp:302
msgid "Add"
@@ -243,7 +244,7 @@
#: cervisiapart.cpp:304
msgid "Adds (cvs add) the selected files to the repository"
-msgstr "Ajoute (« cvs add ») les fichiers sélectionnés au référentiel"
+msgstr "Ajoute (« cvs add ») les fichiers sélectionnés au dépôt"
#: cervisiapart.cpp:308
msgid "Add &Binary..."
@@ -253,11 +254,11 @@
msgid "Adds (cvs -kb add) the selected files as binaries to the repository"
msgstr ""
"Ajoute (« cvs -kb add ») les fichiers sélectionnés sous forme de binaires au "
-"référentiel"
+"dépôt"
#: cervisiapart.cpp:315
msgid "&Remove From Repository..."
-msgstr "Supp&rimer du référentiel..."
+msgstr "Supp&rimer du dépôt..."
#: cervisiapart.cpp:318
msgid "Remove"
@@ -265,7 +266,7 @@
#: cervisiapart.cpp:320
msgid "Removes (cvs remove) the selected files from the repository"
-msgstr "Supprime (« cvs remove ») les fichiers sélectionnés du référentiel"
+msgstr "Supprime (« cvs remove ») les fichiers sélectionnés du dépôt"
#: cervisiapart.cpp:324
msgid "Rever&t"
@@ -311,7 +312,7 @@
#: cervisiapart.cpp:369
msgid "&Difference to Repository (BASE)..."
-msgstr "D&ifférence par rapport au référentiel (BASE)..."
+msgstr "D&ifférence par rapport au dépôt (BASE)..."
#: cervisiapart.cpp:373
msgid ""
@@ -323,7 +324,7 @@
#: cervisiapart.cpp:377
msgid "Difference to Repository (HEAD)..."
-msgstr "Différence par rapport au référentiel (HEAD)..."
+msgstr "Différence par rapport au dépôt (HEAD)..."
#: cervisiapart.cpp:381
msgid ""
@@ -331,7 +332,7 @@
"repository (tag HEAD)"
msgstr ""
"Affiche les différences entre le fichier sélectionné et la version la plus "
-"récente présente dans le référentiel (marque « HEAD »)"
+"récente présente dans le dépôt (marque « HEAD »)"
#: cervisiapart.cpp:385
msgid "Last &Change..."
@@ -480,7 +481,7 @@
#: cervisiapart.cpp:508
msgid "Create &Patch Against Repository..."
-msgstr "Créer un c&orrectif par rapport au référentiel..."
+msgstr "Créer un c&orrectif par rapport au dépôt..."
#: cervisiapart.cpp:511
msgid "Creates a patch from the modifications in your sandbox"
@@ -496,7 +497,7 @@
#: cervisiapart.cpp:525
msgid "Allows you to checkout a module from a repository"
-msgstr "Permet d'extraire un module d'un référentiel"
+msgstr "Permet d'extraire un module d'un dépôt"
#: cervisiapart.cpp:529
msgid "&Import..."
@@ -504,15 +505,15 @@
#: cervisiapart.cpp:532
msgid "Allows you to import a module into a repository"
-msgstr "Permet d'importer un module dans un référentiel"
+msgstr "Permet d'importer un module dans un dépôt"
#: cervisiapart.cpp:536
msgid "&Repositories..."
-msgstr "&Référentiels..."
+msgstr "&Dépôts..."
#: cervisiapart.cpp:539
msgid "Configures a list of repositories you regularly use"
-msgstr "Configure une liste des référentiels que vous utilisez régulièrement"
+msgstr "Configure une liste des dépôts que vous utilisez régulièrement"
#: cervisiapart.cpp:546
msgid "Hide All &Files"
@@ -719,7 +720,7 @@
#: cervisiapart.cpp:1782
#, kde-format
msgid "A CVS commit to repository %1 is done"
-msgstr "Une validation CVS au référentiel %1 est effectuée"
+msgstr "Une validation CVS au dépôt %1 est effectuée"
#: cervisiapart.cpp:1802
msgid ""
@@ -870,7 +871,7 @@
#: checkoutdialog.cpp:398
msgid "Please specify a repository."
-msgstr "Veuillez spécifier un référentiel."
+msgstr "Veuillez spécifier un dépôt."
#: checkoutdialog.cpp:414
msgid "CVS Remote Log"
@@ -906,11 +907,11 @@
#: cvsinitdialog
branches/stable/l10n-kde4/fr/messages/kdesdk
2010 September 10 18:09 UTC
SVN commit 1173889 by grossard:
replaced "référentiel" by "dépôt"
M +35 -34 cervisia.po
M +7 -5 cvsservice.po
--- branches/stable/l10n-kde4/fr/messages/kdesdk/cervisia.po #1173888:1173889
@@ -13,20 +13,21 @@
# Nicolas Ternisien <nicolas.ternisien@gmail.com>, 2005.
# Joelle Cornavin <jcornavi@kde-france.org>, 2005.
# Matthieu Robin <matthieu@macolu.org>, 2005.
-# Ludovic Grossard <grossard@kde.org>, 2007, 2008, 2009.
+# Ludovic Grossard <grossard@kde.org>, 2007, 2008, 2009, 2010.
# Ludovic grossard <grossard@kde.org>, 2009.
msgid ""
msgstr ""
"Project-Id-Version: cervisia\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-09-09 01:35+0200\n"
-"PO-Revision-Date: 2009-12-18 06:55+0100\n"
+"PO-Revision-Date: 2010-09-10 20:03+0200\n"
"Last-Translator: Ludovic Grossard <grossard@kde.org>\n"
"Language-Team: French <kde-francophone@kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Lokalize 1.1\n"
#: addignoremenu.cpp:38
msgid "Add to Ignore List"
@@ -58,15 +59,15 @@
#: addremovedialog.cpp:56
msgid "Add the following files to the repository:"
-msgstr "Ajouter les fichiers suivants au référentiel :"
+msgstr "Ajouter les fichiers suivants au dépôt :"
#: addremovedialog.cpp:57
msgid "Add the following binary files to the repository:"
-msgstr "Ajouter les fichiers binaires suivants au référentiel :"
+msgstr "Ajouter les fichiers binaires suivants au dépôt :"
#: addremovedialog.cpp:58
msgid "Remove the following files from the repository:"
-msgstr "Supprimer les fichiers suivants du référentiel :"
+msgstr "Supprimer les fichiers suivants du dépôt :"
#: addremovedialog.cpp:75
msgid "This will also remove the files from your local working copy."
@@ -75,16 +76,16 @@
#: addrepositorydialog.cpp:44
msgid "Add Repository"
-msgstr "Ajouter un référentiel"
+msgstr "Ajouter un dépôt"
#: addrepositorydialog.cpp:57 checkoutdialog.cpp:87
msgid "&Repository:"
-msgstr "&Référentiel :"
+msgstr "&Dépôt :"
#: addrepositorydialog.cpp:70
msgid "Use remote &shell (only for :ext: repositories):"
msgstr ""
-"Utiliser un &shell distant (uniquement pour les référentiels du type « :"
+"Utiliser un &shell distant (uniquement pour les dépôts du type « :"
"ext: ») :"
#: addrepositorydialog.cpp:77
@@ -101,7 +102,7 @@
#: addrepositorydialog.cpp:186
msgid "Repository Settings"
-msgstr "Paramètres du référentiel"
+msgstr "Paramètres du dépôt"
#: annotatecontroller.cpp:80
#, kde-format
@@ -235,7 +236,7 @@
#: cervisiapart.cpp:299
msgid "&Add to Repository..."
-msgstr "A&jouter au référentiel..."
+msgstr "A&jouter au dépôt..."
#: cervisiapart.cpp:302
msgid "Add"
@@ -243,7 +244,7 @@
#: cervisiapart.cpp:304
msgid "Adds (cvs add) the selected files to the repository"
-msgstr "Ajoute (« cvs add ») les fichiers sélectionnés au référentiel"
+msgstr "Ajoute (« cvs add ») les fichiers sélectionnés au dépôt"
#: cervisiapart.cpp:308
msgid "Add &Binary..."
@@ -253,11 +254,11 @@
msgid "Adds (cvs -kb add) the selected files as binaries to the repository"
msgstr ""
"Ajoute (« cvs -kb add ») les fichiers sélectionnés sous forme de binaires au "
-"référentiel"
+"dépôt"
#: cervisiapart.cpp:315
msgid "&Remove From Repository..."
-msgstr "Supp&rimer du référentiel..."
+msgstr "Supp&rimer du dépôt..."
#: cervisiapart.cpp:318
msgid "Remove"
@@ -265,7 +266,7 @@
#: cervisiapart.cpp:320
msgid "Removes (cvs remove) the selected files from the repository"
-msgstr "Supprime (« cvs remove ») les fichiers sélectionnés du référentiel"
+msgstr "Supprime (« cvs remove ») les fichiers sélectionnés du dépôt"
#: cervisiapart.cpp:324
msgid "Rever&t"
@@ -311,7 +312,7 @@
#: cervisiapart.cpp:369
msgid "&Difference to Repository (BASE)..."
-msgstr "D&ifférence par rapport au référentiel (BASE)..."
+msgstr "D&ifférence par rapport au dépôt (BASE)..."
#: cervisiapart.cpp:373
msgid ""
@@ -323,7 +324,7 @@
#: cervisiapart.cpp:377
msgid "Difference to Repository (HEAD)..."
-msgstr "Différence par rapport au référentiel (HEAD)..."
+msgstr "Différence par rapport au dépôt (HEAD)..."
#: cervisiapart.cpp:381
msgid ""
@@ -331,7 +332,7 @@
"repository (tag HEAD)"
msgstr ""
"Affiche les différences entre le fichier sélectionné et la version la plus "
-"récente présente dans le référentiel (marque « HEAD »)"
+"récente présente dans le dépôt (marque « HEAD »)"
#: cervisiapart.cpp:385
msgid "Last &Change..."
@@ -480,7 +481,7 @@
#: cervisiapart.cpp:508
msgid "Create &Patch Against Repository..."
-msgstr "Créer un c&orrectif par rapport au référentiel..."
+msgstr "Créer un c&orrectif par rapport au dépôt..."
#: cervisiapart.cpp:511
msgid "Creates a patch from the modifications in your sandbox"
@@ -496,7 +497,7 @@
#: cervisiapart.cpp:525
msgid "Allows you to checkout a module from a repository"
-msgstr "Permet d'extraire un module d'un référentiel"
+msgstr "Permet d'extraire un module d'un dépôt"
#: cervisiapart.cpp:529
msgid "&Import..."
@@ -504,15 +505,15 @@
#: cervisiapart.cpp:532
msgid "Allows you to import a module into a repository"
-msgstr "Permet d'importer un module dans un référentiel"
+msgstr "Permet d'importer un module dans un dépôt"
#: cervisiapart.cpp:536
msgid "&Repositories..."
-msgstr "&Référentiels..."
+msgstr "&Dépôts..."
#: cervisiapart.cpp:539
msgid "Configures a list of repositories you regularly use"
-msgstr "Configure une liste des référentiels que vous utilisez régulièrement"
+msgstr "Configure une liste des dépôts que vous utilisez régulièrement"
#: cervisiapart.cpp:546
msgid "Hide All &Files"
@@ -719,7 +720,7 @@
#: cervisiapart.cpp:1782
#, kde-format
msgid "A CVS commit to repository %1 is done"
-msgstr "Une validation CVS au référentiel %1 est effectuée"
+msgstr "Une validation CVS au dépôt %1 est effectuée"
#: cervisiapart.cpp:1802
msgid ""
@@ -870,7 +871,7 @@
#: checkoutdialog.cpp:398
msgid "Please specify a repository."
-msgstr "Veuillez spécifier un référentiel."
+msgstr "Veuillez spécifier un dépôt."
#: checkoutdialog.cpp:414
msgid "CVS Remote Log"
@@ -906,11 +907,11 @@
#: cvsinitdialog.cpp:41
m
KDE/kdeedu/kalgebra/src
2010 September 10 18:09 UTC
SVN commit 1173888 by apol:
Don't hardcode colors on code.
M +11 -8 functionedit.cpp
--- trunk/KDE/kdeedu/kalgebra/src/functionedit.cpp #1173887:1173888
@@ -26,6 +26,7 @@
#include <KLocale>
#include <KIcon>
#include <KTabWidget>
+#include <KColorScheme>
#include "graph2d.h"
#include "functionsmodel.h"
@@ -198,7 +199,7 @@
}
}
-void FunctionEdit::setState(const QString& text, const QColor& state)
+void FunctionEdit::setState(const QString& text, bool negative)
{
QFont errorFont=m_valid->font();
errorFont.setBold(true);
@@ -219,11 +220,14 @@
}
m_valid->setText(error);
+ KColorScheme scheme(QPalette::Normal);
+ KColorScheme::ForegroundRole role = negative? KColorScheme::NegativeText : KColorScheme::PositiveText;
+
QPalette p=m_valid->palette();
- p.setColor(foregroundRole(), state);
+ p.setColor(foregroundRole(), scheme.foreground(role).color());
m_valid->setPalette(p);
- if(state==Qt::red)
+ if(negative)
m_validIcon->setPixmap(KIcon("flag-red").pixmap(QSize(16,16)));
else
m_validIcon->setPixmap(KIcon("flag-green").pixmap(QSize(16,16)));
@@ -245,12 +249,12 @@
}
if(!m_uplimit->isCorrect() || !m_downlimit->isCorrect()) {
- setState(i18n("The options you specified are not correct"), Qt::red);
+ setState(i18n("The options you specified are not correct"), true);
return;
}
if(m_calcDownlimit>m_calcUplimit) {
- setState(i18n("Downlimit cannot be greater than uplimit"), Qt::red);
+ setState(i18n("Downlimit cannot be greater than uplimit"), true);
return;
}
@@ -267,7 +271,7 @@
m_funcsModel->clear();
m_funcsModel->addFunction(f);
setState(QString("%1:=%2")
- .arg(m_name->text()).arg(f.expression().toString()), QColor(0, 140, 0));
+ .arg(m_name->text()).arg(f.expression().toString()), false);
} else {
QStringList errors = f.errors();
Q_ASSERT(!errors.isEmpty());
@@ -276,9 +280,8 @@
m_graph->forceRepaint();
// m_valid->setText(i18n("<b style='color:red'>WRONG</b>"));
- setState(errors.first(), Qt::red);
+ setState(errors.first(), true);
m_valid->setToolTip(errors.join("<br />"));
- m_validIcon->setPixmap(KIcon("flag-red").pixmap(QSize(16,16)));
}
m_func->setCorrect(f.isCorrect());
m_ok->setEnabled(f.isCorrect());