Commit 3c726ee2 authored by Boudewijn Rempt's avatar Boudewijn Rempt

fix coding style

parent e09e64e7
This diff is collapsed.
......@@ -33,43 +33,43 @@ class KoColor;
class KisPopupPalette : public QWidget
{
Q_OBJECT
Q_PROPERTY (int hoveredPreset READ hoveredPreset WRITE setHoveredPreset)
Q_PROPERTY (int hoveredColor READ hoveredColor WRITE setHoveredColor)
Q_PROPERTY (int selectedColor READ selectedColor WRITE setSelectedColor)
Q_PROPERTY(int hoveredPreset READ hoveredPreset WRITE setHoveredPreset)
Q_PROPERTY(int hoveredColor READ hoveredColor WRITE setHoveredColor)
Q_PROPERTY(int selectedColor READ selectedColor WRITE setSelectedColor)
public:
KisPopupPalette(KisFavoriteResourceManager*, QWidget *parent = 0);
~KisPopupPalette();
QSize sizeHint() const;
void showPopupPalette (const QPoint&);
void showPopupPalette (bool b);
void showPopupPalette(const QPoint&);
void showPopupPalette(bool b);
//functions to set up selectedBrush
void setSelectedBrush( int x );
void setSelectedBrush(int x);
int selectedBrush() const;
//functions to set up selectedColor
void setSelectedColor( int x );
void setSelectedColor(int x);
int selectedColor() const;
protected:
void paintEvent (QPaintEvent*);
void resizeEvent (QResizeEvent*);
void mouseReleaseEvent (QMouseEvent*);
void mouseMoveEvent (QMouseEvent*);
void mousePressEvent (QMouseEvent*);
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);
void mouseReleaseEvent(QMouseEvent*);
void mouseMoveEvent(QMouseEvent*);
void mousePressEvent(QMouseEvent*);
//functions to calculate index of favorite brush or recent color in array
//n is the total number of favorite brushes or recent colors
int calculateIndex(QPointF, int n);
int calculatePresetIndex(QPointF, int n);
//functions to set up hoveredBrush
void setHoveredPreset( int x );
void setHoveredPreset(int x);
int hoveredPreset() const;
//functions to set up hoveredColor
void setHoveredColor( int x );
void setHoveredColor(int x);
int hoveredColor() const;
......@@ -108,7 +108,7 @@ signals:
private slots:
void slotChangefGColor(const QColor& newColor);
void slotColorChangeTimeout();
void slotTriggerTimer();
void slotEnableChangeFGColor();
};
......
Markdown is supported
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