QtGui/qcolordialog.h Source File
Go to the documentation of this file.
42 #ifndef QCOLORDIALOG_H
43 #define QCOLORDIALOG_H
53 #ifndef QT_NO_COLORDIALOG
55 class QColorDialogPrivate;
63 NOTIFY currentColorChanged)
64 Q_PROPERTY(ColorDialogOptions options READ options WRITE setOptions)
68 ShowAlphaChannel = 0x00000001,
69 NoButtons = 0x00000002,
70 DontUseNativeDialog = 0x00000004
73 Q_DECLARE_FLAGS(ColorDialogOptions, ColorDialogOption)
80 QColor currentColor() const;
82 QColor selectedColor() const;
84 void setOption(ColorDialogOption option,
bool on = true);
85 bool testOption(ColorDialogOption option) const;
86 void setOptions(ColorDialogOptions options);
87 ColorDialogOptions options() const;
89 #ifdef Q_NO_USING_KEYWORD
100 ColorDialogOptions options = 0);
104 static QRgb getRgba(
QRgb rgba = 0xffffffff,
bool *ok = 0,
QWidget *parent = 0);
107 static int customCount();
109 static void setCustomColor(
int index,
QRgb color);
110 static void setStandardColor(
int index,
QRgb color);
114 { Q_UNUSED(name);
return getColor(init, parent); }
116 { Q_UNUSED(name);
return getRgba(rgba, ok, parent); }
120 void currentColorChanged(
const QColor &color);
121 void colorSelected(
const QColor &color);
125 void done(
int result);
135 #if defined(Q_WS_MAC)
139 friend class QColorShower;
142 Q_DECLARE_OPERATORS_FOR_FLAGS(QColorDialog::ColorDialogOptions)
144 #endif // QT_NO_COLORDIALOG
150 #endif // QCOLORDIALOG_H
void setVisible(bool visible)
GLXDrawable GLXDrawable member
#define Q_PRIVATE_SLOT(d, signature)
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef unsigned int QRgb
#define QT_BEGIN_NAMESPACE
int int int int int int h
GLuint const GLchar * name