diff options
| author | Zack Rusin <[email protected]> | 2006-12-04 19:51:53 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2006-12-04 19:51:53 +0000 |
| commit | d27b30a66ae9038eadf81cc06dae1b002bef7625 (patch) | |
| tree | 80906e2298225f1543041bede013cf9d3e747a73 /src/infosidebarpage.cpp | |
| parent | 93129f9d2eee85854244b2f9234a557b35963f43 (diff) | |
fixing more warnings
svn path=/trunk/playground/utils/dolphin/; revision=610636
Diffstat (limited to 'src/infosidebarpage.cpp')
| -rw-r--r-- | src/infosidebarpage.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index e584bfa8d..b32f83cd1 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -132,7 +132,8 @@ void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url) if (!url.isEmpty() && !m_multipleSelection) { m_urlCandidate = url; - m_timer->start(300, true); + m_timer->setSingleShot(true); + m_timer->start(300); } } @@ -473,11 +474,11 @@ void InfoSidebarPage::insertActions() while (insert && mimeIt.hasNext()) { KFileItem* item = mimeIt.next(); const QString mimeType(item->mimetype()); - const QString mimeGroup(mimeType.left(mimeType.find('/'))); + const QString mimeGroup(mimeType.left(mimeType.indexOf('/'))); insert = (*it == mimeType) || ((*it).right(1) == "*") && - ((*it).left((*it).find('/')) == mimeGroup); + ((*it).left((*it).indexOf('/')) == mimeGroup); } } @@ -536,7 +537,7 @@ ServiceButton::ServiceButton(const QIcon& icon, m_hover(false), m_index(index) { - setEraseColor(colorGroup().background()); + setEraseColor(palette().brush(QPalette::Background).color()); setFocusPolicy(Qt::NoFocus); connect(this, SIGNAL(released()), this, SLOT(slotReleased())); @@ -559,7 +560,7 @@ void ServiceButton::paintEvent(QPaintEvent* event) foregroundColor = KGlobalSettings::highlightedTextColor(); } else { - backgroundColor = colorGroup().background(); + backgroundColor = palette().brush(QPalette::Background).color(); foregroundColor = KGlobalSettings::buttonTextColor(); } |
