rewrote Button and ToggleButton to use the new PixmapButton as baseclass.
This commit is contained in:
parent
e2fdb4e009
commit
efa16e9236
15 changed files with 115 additions and 146 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <QMainWindow>
|
||||
#include <QFont>
|
||||
#include <QScrollBar>
|
||||
#include <QSizeGrip>
|
||||
|
||||
class MainWindow;
|
||||
class PlaylistWidget;
|
||||
|
@ -35,7 +36,17 @@ class PlaylistView;
|
|||
class PlaylistShade;
|
||||
class PlaylistMenu;
|
||||
|
||||
class PlaylistSizeGrip : public QSizeGrip {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PlaylistSizeGrip (QWidget *parent) : QSizeGrip (parent) {}
|
||||
~PlaylistSizeGrip () {}
|
||||
|
||||
public slots:
|
||||
void paintEvent (QPaintEvent *event) {}
|
||||
|
||||
};
|
||||
|
||||
class PlaylistScrollBar : public QScrollBar {
|
||||
Q_OBJECT
|
||||
|
@ -62,15 +73,6 @@ class PlaylistScrollBar : public QScrollBar {
|
|||
};
|
||||
|
||||
|
||||
class dragButton : public Button {
|
||||
public:
|
||||
dragButton (QWidget *parent) : Button (parent) {}
|
||||
~dragButton () {}
|
||||
|
||||
void mouseMoveEvent (QMouseEvent *event);
|
||||
};
|
||||
|
||||
|
||||
class PlaylistWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -112,7 +114,7 @@ class PlaylistWidget : public QWidget {
|
|||
|
||||
PlaylistView *m_view;
|
||||
QScrollBar *m_scrollBar;
|
||||
dragButton *m_drag;
|
||||
PlaylistSizeGrip *m_sizegrip;
|
||||
|
||||
PlaylistMenu *m_add;
|
||||
PlaylistMenu *m_del;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue