forked from qt-creator/qt-creator
ImageViewer: Pick up the icons from the system theme using QIcon::fromTheme
Merge-request: 2165 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
aa7d2c54d3
commit
b2fabac69e
@@ -37,6 +37,8 @@
|
||||
#include <QtCore/QScopedPointer>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QAbstractButton)
|
||||
|
||||
namespace ImageViewer {
|
||||
namespace Internal {
|
||||
class ImageViewerFile;
|
||||
@@ -75,6 +77,15 @@ public:
|
||||
public slots:
|
||||
void scaleFactorUpdate(qreal factor);
|
||||
|
||||
private:
|
||||
/*!
|
||||
\brief Try to change button's icon to the one from the current theme
|
||||
\param button Button where an icon should be changed
|
||||
\param name Icon name in the in the current icon theme
|
||||
\return true if icon is updated, false otherwise
|
||||
*/
|
||||
bool updateButtonIconByTheme(QAbstractButton *button, const QString &name);
|
||||
|
||||
private:
|
||||
QScopedPointer<struct ImageViewerPrivate> d_ptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user