Commit 7c9b937d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 309292 - Missing properties in KColorDialog, KColorCells,

KColorPath

FIXED-IN: 4.10
BUG: 309292
"adding to KColorPath: QColor color" already done
parent de0c244b
......@@ -233,11 +233,21 @@ void KColorCells::setShading(bool _shade)
d->shade = _shade;
}
bool KColorCells::shading() const
{
return d->shade;
}
void KColorCells::setAcceptDrags(bool _acceptDrags)
{
this->setDragEnabled(_acceptDrags);
}
bool KColorCells::acceptDrags() const
{
return this->dragEnabled();
}
void KColorCells::setSelected(int index)
{
Q_ASSERT(index >= 0 && index < count());
......
......@@ -40,6 +40,9 @@
class KDEUI_EXPORT KColorCells : public QTableWidget
{
Q_OBJECT
Q_PROPERTY(bool acceptDrags READ acceptDrags WRITE setAcceptDrags)
Q_PROPERTY(bool shading READ shading WRITE setShading)
public:
/**
* Constructs a new table of color cells, consisting of
......@@ -60,7 +63,10 @@ public:
int count() const;
void setShading(bool shade);
bool shading() const;
void setAcceptDrags(bool acceptDrags);
bool acceptDrags() const;
/** Sets the currently selected cell to @p index */
void setSelected(int index);
......@@ -204,6 +210,9 @@ private:
class KDEUI_EXPORT KColorDialog : public KDialog
{
Q_OBJECT
Q_PROPERTY(bool isAlphaChannelEnabled READ isAlphaChannelEnabled WRITE setAlphaChannelEnabled)
Q_PROPERTY(QColor defaultColor READ defaultColor WRITE setDefaultColor)
Q_PROPERTY(QColor color READ color WRITE setColor)
public:
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment