tools/designer/src/lib/shared/qdesigner_utils_p.h
changeset 7 f7bc934e204c
parent 0 1918ee327afb
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     8 **
     8 **
   296 
   296 
   297 class QDESIGNER_SHARED_EXPORT DesignerIconCache : public QObject
   297 class QDESIGNER_SHARED_EXPORT DesignerIconCache : public QObject
   298 {
   298 {
   299     Q_OBJECT
   299     Q_OBJECT
   300 public:
   300 public:
   301     DesignerIconCache(DesignerPixmapCache *pixmapCache, QObject *parent = 0);
   301     explicit DesignerIconCache(DesignerPixmapCache *pixmapCache, QObject *parent = 0);
   302     QIcon icon(const PropertySheetIconValue &value) const;
   302     QIcon icon(const PropertySheetIconValue &value) const;
   303     void clear();
   303     void clear();
   304 signals:
   304 signals:
   305     void reloaded();
   305     void reloaded();
   306 private:
   306 private:
   311 
   311 
   312 // -------------- StringValue: Returned by the property sheet for strings
   312 // -------------- StringValue: Returned by the property sheet for strings
   313 class QDESIGNER_SHARED_EXPORT PropertySheetStringValue
   313 class QDESIGNER_SHARED_EXPORT PropertySheetStringValue
   314 {
   314 {
   315 public:
   315 public:
   316     PropertySheetStringValue(const QString &value = QString(),
   316     explicit PropertySheetStringValue(const QString &value = QString(),
   317                              bool translatable = true,
   317                              bool translatable = true,
   318                              const QString &disambiguation = QString(),
   318                              const QString &disambiguation = QString(),
   319                              const QString &comment = QString());
   319                              const QString &comment = QString());
   320 
   320 
   321     bool operator==(const PropertySheetStringValue &other) const { return equals(other); }
   321     bool operator==(const PropertySheetStringValue &other) const { return equals(other); }
   343 
   343 
   344 // -------------- StringValue: Returned by the property sheet for strings
   344 // -------------- StringValue: Returned by the property sheet for strings
   345 class QDESIGNER_SHARED_EXPORT PropertySheetKeySequenceValue
   345 class QDESIGNER_SHARED_EXPORT PropertySheetKeySequenceValue
   346 {
   346 {
   347 public:
   347 public:
   348     PropertySheetKeySequenceValue(const QKeySequence &value = QKeySequence(),
   348     explicit PropertySheetKeySequenceValue(const QKeySequence &value = QKeySequence(),
   349                                   bool translatable = true,
   349                                   bool translatable = true,
   350                                   const QString &disambiguation = QString(),
   350                                   const QString &disambiguation = QString(),
   351                                   const QString &comment = QString());
   351                                   const QString &comment = QString());
   352     PropertySheetKeySequenceValue(const QKeySequence::StandardKey &standardKey,
   352     explicit PropertySheetKeySequenceValue(const QKeySequence::StandardKey &standardKey,
   353                                   bool translatable = true,
   353                                   bool translatable = true,
   354                                   const QString &disambiguation = QString(),
   354                                   const QString &disambiguation = QString(),
   355                                   const QString &comment = QString());
   355                                   const QString &comment = QString());
   356 
   356 
   357     bool operator==(const PropertySheetKeySequenceValue &other) const { return equals(other); }
   357     bool operator==(const PropertySheetKeySequenceValue &other) const { return equals(other); }