diff options
| author | 2018-12-02 20:06:26 +0000 | |
|---|---|---|
| committer | 2019-01-16 21:40:14 +0100 | |
| commit | 2c9ba26432856b65883aa6dea98f73009f20bb3a (patch) | |
| tree | 0f3f2296cc285d3d68e0ba619c7f5bafd6154abd /src/modules/url/libkviurl.cpp | |
| parent | KviOptions.h: Add getMircColor (diff) | |
| download | KVIrc-2c9ba26432856b65883aa6dea98f73009f20bb3a.tar.gz KVIrc-2c9ba26432856b65883aa6dea98f73009f20bb3a.tar.bz2 KVIrc-2c9ba26432856b65883aa6dea98f73009f20bb3a.zip | |
Replace KVI_OPTION_MIRCCOLOR usage with getMircColor
- Replace occurrences in IRC-related views, and message type
references
- Don't replace occurrences dealing with the color picker or the
configurable low (0-15) colors
- Also replace hard-coded references to the maximum color
index (15/16) with KVI_EXTCOLOR_MAX
Diffstat (limited to 'src/modules/url/libkviurl.cpp')
| -rw-r--r-- | src/modules/url/libkviurl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/url/libkviurl.cpp b/src/modules/url/libkviurl.cpp index 81144088b..a10d5171c 100644 --- a/src/modules/url/libkviurl.cpp +++ b/src/modules/url/libkviurl.cpp @@ -288,10 +288,10 @@ void UrlDialog::addUrl(QString url, QString window, QString count, QString times UrlItem->setText(2, count); UrlItem->setText(3, timestamp); - UrlItem->setForeground(0, KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_URL).fore())); - UrlItem->setForeground(1, KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); - UrlItem->setForeground(2, KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); - UrlItem->setForeground(3, KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); + UrlItem->setForeground(0, getMircColor(KVI_OPTION_MSGTYPE(KVI_OUT_URL).fore())); + UrlItem->setForeground(1, getMircColor(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); + UrlItem->setForeground(2, getMircColor(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); + UrlItem->setForeground(3, getMircColor(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore())); m_pUrlList->resizeColumnToContents(0); m_pUrlList->resizeColumnToContents(3); |
