add more FAB boilerplate
This commit is contained in:
parent
144479cf7b
commit
e5a4da2d16
|
@ -1,7 +1,7 @@
|
|||
#include "fab.h"
|
||||
|
||||
FloatingActionButton::FloatingActionButton(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
: RaisedButton(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef FAB_H
|
||||
#define FAB_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "raisedbutton.h"
|
||||
|
||||
class FloatingActionButton : public QWidget
|
||||
class FloatingActionButton : public RaisedButton
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -13,7 +13,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(FloatingActionButton)
|
||||
//Q_DECLARE_PRIVATE(FloatingActionButton)
|
||||
Q_DECLARE_PRIVATE(FloatingActionButton)
|
||||
};
|
||||
|
||||
#endif // FAB_H
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef FAB_P_H
|
||||
#define FAB_P_H
|
||||
|
||||
#include "raisedbutton_p.h"
|
||||
|
||||
class FloatingActionButtonPrivate : public RaisedButtonPrivate
|
||||
{
|
||||
Q_DISABLE_COPY(FloatingActionButtonPrivate)
|
||||
Q_DECLARE_PUBLIC(FloatingActionButton)
|
||||
|
||||
public:
|
||||
FloatingActionButtonPrivate(FloatingActionButton *q)
|
||||
: RaisedButtonPrivate(q)
|
||||
{
|
||||
}
|
||||
|
||||
~FloatingActionButtonPrivate()
|
||||
{
|
||||
}
|
||||
|
||||
void init()
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
#endif // FAB_P_H
|
|
@ -119,7 +119,8 @@ HEADERS += mainwindow.h \
|
|||
components/fab.h \
|
||||
components/badge.h \
|
||||
components/progress.h \
|
||||
components/selectfield.h
|
||||
components/selectfield.h \
|
||||
components/fab_p.h
|
||||
|
||||
RESOURCES += \
|
||||
resources.qrc
|
||||
|
|
Loading…
Reference in New Issue