Moved most of the hardcoded colors of lists and trees to the file qss.default (with help from braindead).

Now the stylesheet can redefine these colors.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5843 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-11-19 16:01:21 +00:00
parent 9c1d702128
commit a8d1d05405
19 changed files with 387 additions and 104 deletions

View file

@ -36,6 +36,8 @@ class FriendSelectionWidget : public QWidget
{
Q_OBJECT
Q_PROPERTY(QColor textColorOnline READ textColorOnline WRITE setTextColorOnline)
public:
enum IdType
{
@ -68,6 +70,13 @@ public:
void setSelectedSslIds(const std::list<std::string> &sslIds, bool add) { setSelectedIds(IDTYPE_SSL, sslIds, add); }
void setSelectedGroupIds(const std::list<std::string> &groupIds, bool add) { setSelectedIds(IDTYPE_GROUP, groupIds, add); }
QColor textColorOnline() const { return mTextColorOnline; }
void setTextColorOnline(QColor color) { mTextColorOnline = color; }
protected:
void changeEvent(QEvent *e);
signals:
void contentChanged();
void customContextMenuRequested(const QPoint &pos);
@ -93,6 +102,9 @@ private:
bool showGroups;
bool inItemChanged;
/* Color definitions (for standard see qss.default) */
QColor mTextColorOnline;
Ui::FriendSelectionWidget *ui;
};