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 ** |
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); } |