Commit c0a922ca authored by Mathias Soeken's avatar Mathias Soeken

coding style. some cleanup

svn path=/trunk/KDE/kdegraphics/kruler/; revision=898207
parent db8ce006
This diff is collapsed.
......@@ -27,31 +27,33 @@ class KMenu;
class KLineal : public QWidget {
Q_OBJECT
public:
enum { North=0, West=1, South=2, East=3 };
/** constructor */
KLineal(QWidget*parent=0);
/** destructor */
enum { North = 0, West, South, East };
KLineal( QWidget *parent = 0 );
~KLineal();
void move(int x, int y);
void move(const QPoint &p);
void move( int x, int y );
void move( const QPoint &p );
QPoint pos();
int x();
int y();
protected:
void keyPressEvent(QKeyEvent *e);
void mousePressEvent(QMouseEvent *e);
void mouseReleaseEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *e);
void paintEvent(QPaintEvent *e);
void enterEvent(QEvent *e);
void leaveEvent(QEvent *e);
void keyPressEvent( QKeyEvent *e );
void mousePressEvent( QMouseEvent *e );
void mouseReleaseEvent( QMouseEvent *e );
void mouseMoveEvent( QMouseEvent *e );
void paintEvent( QPaintEvent *e );
void enterEvent( QEvent *e );
void leaveEvent( QEvent *e );
private:
void drawScale(QPainter &painter);
void drawBackground(QPainter &painter);
void reLength(int percentOfScreen);
void drawScale( QPainter &painter );
void drawBackground( QPainter &painter );
void reLength( int percentOfScreen );
bool mDragging;
QPoint mLastClickPos;
QPoint mDragOffset;
......@@ -74,8 +76,9 @@ private:
KColorDialog mColorSelector;
QFont mScaleFont;
bool _clicked;
public slots:
void setOrientation(int);
void setOrientation( int );
void setNorth();
void setEast();
void setSouth();
......@@ -91,10 +94,10 @@ public slots:
void setTallLength();
void setFullLength();
void setColor();
void setFont(QFont &);
void setColor(const QColor &color);
void choseColor();
void choseFont();
void setFont( const QFont &font );
void setColor( const QColor &color );
void chooseColor();
void chooseFont();
void restoreColor();
void saveSettings();
void slotQuit();
......
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