[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [Bug 115343] Hardcoded color of text in popup to select folder
From: Andreas Gungl <a.gungl () gmx ! de>
Date: 2005-11-01 15:24:59
Message-ID: 20051101152459.26943.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=115343
a.gungl gmx de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From a.gungl gmx de 2005-11-01 16:24 -------
SVN commit 476587 by gungl:
Color fix in the folder selection dialog
BUG:115343
M +16 -0 kmfolderseldlg.cpp
M +4 -0 kmfolderseldlg.h
--- branches/KDE/3.5/kdepim/kmail/kmfolderseldlg.cpp #476586:476587
@ -53,6 +53,7 @
mFolderColumn = addColumn( i18n( "Folder" ) );
reload( mustBeReadWrite, true, true, preSelection );
+ readColorConfig();
connect( this, SIGNAL( contextMenuRequested( QListViewItem*, const QPoint &, int ) ),
this, SLOT( slotContextMenuRequested( QListViewItem*, const QPoint & ) ) );
@ -225,7 +226,22 @
folderMenu = 0;
}
+//-----------------------------------------------------------------------------
+void SimpleFolderTree::readColorConfig (void)
+{
+ QColor c1=QColor(kapp->palette().active().text());
+ QColor c2=QColor(kapp->palette().active().base());
+ mPaintInfo.colFore = c1;
+ mPaintInfo.colBack = c2;
+
+ QPalette newPal = kapp->palette();
+ newPal.setColor( QColorGroup::Base, mPaintInfo.colBack );
+ newPal.setColor( QColorGroup::Text, mPaintInfo.colFore );
+ setPalette( newPal );
+}
+
+
//-----------------------------------------------------------------------------
KMFolderSelDlg::KMFolderSelDlg( KMMainWidget * parent, const QString& caption,
bool mustBeReadWrite, bool useGlobalSettings )
--- branches/KDE/3.5/kdepim/kmail/kmfolderseldlg.h #476586:476587
@ -40,6 +40,10 @
protected slots:
void slotContextMenuRequested( QListViewItem *, const QPoint & );
+ protected:
+ /** Read color options and set palette. */
+ virtual void readColorConfig(void);
+
private:
KMFolderTree* mFolderTree;
int mFolderColumn;
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic