Class name matches the file name.

This commit is contained in:
Achraf k 2022-02-17 16:17:19 +01:00
parent 0db2da80a4
commit f1f696c5dc
163 changed files with 592 additions and 592 deletions

View File

@ -21,130 +21,130 @@ find_package(Qt${QT_VERSION_MAJOR} COMPONENTS StateMachine REQUIRED)
# Create a library called "components" which includes the source file "*.cpp".
# The extension is already found. Any number of sources could be listed here.
set(PROJECT_SOURCES
qtmaterialavatar.cpp
lib/qtmaterialstyle.cpp
lib/qtmaterialtheme.cpp
qtmaterialbadge.cpp
lib/qtmaterialoverlaywidget.cpp
qtmaterialcheckbox.cpp
lib/qtmaterialcheckable_internal.cpp
lib/qtmaterialcheckable.cpp
lib/qtmaterialripple.cpp
lib/qtmaterialrippleoverlay.cpp
qtmaterialfab.cpp
qtmaterialraisedbutton.cpp
qtmaterialflatbutton_internal.cpp
qtmaterialflatbutton.cpp
lib/qtmaterialstatetransition.cpp
qtmaterialiconbutton.cpp
qtmaterialprogress_internal.cpp
qtmaterialprogress.cpp
qtmaterialcircularprogress_internal.cpp
qtmaterialcircularprogress.cpp
qtmaterialslider_internal.cpp
qtmaterialslider.cpp
qtmaterialsnackbar_internal.cpp
qtmaterialsnackbar.cpp
qtmaterialradiobutton.cpp
qtmaterialtoggle_internal.cpp
qtmaterialtoggle.cpp
qtmaterialtextfield_internal.cpp
qtmaterialtextfield.cpp
qtmaterialtabs_internal.cpp
qtmaterialtabs.cpp
qtmaterialscrollbar_internal.cpp
qtmaterialscrollbar.cpp
qtmaterialdialog_internal.cpp
qtmaterialdialog.cpp
qtmaterialdrawer_internal.cpp
qtmaterialdrawer.cpp
qtmaterialappbar.cpp
qtmaterialautocomplete.cpp
qtmaterialpaper.cpp
qtmaterialtable.cpp
layouts/qtmaterialsnackbarlayout.cpp
qtmaterialautocomplete_internal.cpp
qtmaterialmenu.cpp
qtmaterialmenu_internal.cpp
qtmateriallist.cpp
qtmateriallistitem.cpp
qtmaterialavatar_p.h
qtmaterialavatar.h
lib/qtmaterialstyle_p.h
lib/qtmaterialstyle.h
lib/qtmaterialtheme_p.h
lib/qtmaterialtheme.h
qtmaterialbadge_p.h
qtmaterialbadge.h
lib/qtmaterialoverlaywidget.h
qtmaterialcheckbox_p.h
qtmaterialcheckbox.h
lib/qtmaterialcheckable_internal.h
lib/qtmaterialcheckable_p.h
lib/qtmaterialripple.h
lib/qtmaterialrippleoverlay.h
lib/qtmaterialcheckable.h
qtmaterialfab_p.h
qtmaterialfab.h
qtmaterialraisedbutton_p.h
qtmaterialraisedbutton.h
qtmaterialflatbutton_internal.h
qtmaterialflatbutton_p.h
qtmaterialflatbutton.h
lib/qtmaterialstatetransition.h
lib/qtmaterialstatetransitionevent.h
qtmaterialiconbutton_p.h
qtmaterialiconbutton.h
qtmaterialprogress_internal.h
qtmaterialprogress_p.h
qtmaterialprogress.h
qtmaterialcircularprogress_internal.h
qtmaterialcircularprogress_p.h
qtmaterialcircularprogress.h
qtmaterialslider_internal.h
qtmaterialslider_p.h
qtmaterialslider.h
qtmaterialsnackbar_internal.h
qtmaterialsnackbar_p.h
qtmaterialsnackbar.h
qtmaterialradiobutton_p.h
qtmaterialradiobutton.h
qtmaterialtoggle_internal.h
qtmaterialtoggle_p.h
qtmaterialtoggle.h
qtmaterialtextfield_internal.h
qtmaterialtextfield_p.h
qtmaterialtextfield.h
qtmaterialtabs_internal.h
qtmaterialtabs_p.h
qtmaterialtabs.h
qtmaterialscrollbar_internal.h
qtmaterialscrollbar_p.h
qtmaterialscrollbar.h
qtmaterialdialog_internal.h
qtmaterialdialog_p.h
qtmaterialdialog.h
qtmaterialdrawer_internal.h
qtmaterialdrawer_p.h
qtmaterialdrawer.h
qtmaterialappbar.h
qtmaterialappbar_p.h
qtmaterialautocomplete.h
qtmaterialautocomplete_p.h
qtmaterialpaper.h
qtmaterialpaper_p.h
qtmaterialtable.h
qtmaterialtable_p.h
layouts/qtmaterialsnackbarlayout.h
layouts/qtmaterialsnackbarlayout_p.h
qtmaterialautocomplete_internal.h
qtmaterialmenu.h
qtmaterialmenu_p.h
qtmaterialmenu_internal.h
qtmateriallist.h
qtmateriallist_p.h
qtmateriallistitem.h
qtmateriallistitem_p.h
avatar.cpp
lib/style.cpp
lib/theme.cpp
badge.cpp
lib/overlaywidget.cpp
checkbox.cpp
lib/checkable_internal.cpp
lib/checkable.cpp
lib/ripple.cpp
lib/rippleoverlay.cpp
fab.cpp
raisedbutton.cpp
flatbutton_internal.cpp
flatbutton.cpp
lib/statetransition.cpp
iconbutton.cpp
progress_internal.cpp
progress.cpp
circularprogress_internal.cpp
circularprogress.cpp
slider_internal.cpp
slider.cpp
snackbar_internal.cpp
snackbar.cpp
radiobutton.cpp
toggle_internal.cpp
toggle.cpp
textfield_internal.cpp
textfield.cpp
tabs_internal.cpp
tabs.cpp
scrollbar_internal.cpp
scrollbar.cpp
dialog_internal.cpp
dialog.cpp
drawer_internal.cpp
drawer.cpp
appbar.cpp
autocomplete.cpp
paper.cpp
table.cpp
layouts/snackbarlayout.cpp
autocomplete_internal.cpp
menu.cpp
menu_internal.cpp
list.cpp
listitem.cpp
avatar_p.h
avatar.h
lib/style_p.h
lib/style.h
lib/theme_p.h
lib/theme.h
badge_p.h
badge.h
lib/overlaywidget.h
checkbox_p.h
checkbox.h
lib/checkable_internal.h
lib/checkable_p.h
lib/ripple.h
lib/rippleoverlay.h
lib/checkable.h
fab_p.h
fab.h
raisedbutton_p.h
raisedbutton.h
flatbutton_internal.h
flatbutton_p.h
flatbutton.h
lib/statetransition.h
lib/statetransitionevent.h
iconbutton_p.h
iconbutton.h
progress_internal.h
progress_p.h
progress.h
circularprogress_internal.h
circularprogress_p.h
circularprogress.h
slider_internal.h
slider_p.h
slider.h
snackbar_internal.h
snackbar_p.h
snackbar.h
radiobutton_p.h
radiobutton.h
toggle_internal.h
toggle_p.h
toggle.h
textfield_internal.h
textfield_p.h
textfield.h
tabs_internal.h
tabs_p.h
tabs.h
scrollbar_internal.h
scrollbar_p.h
scrollbar.h
dialog_internal.h
dialog_p.h
dialog.h
drawer_internal.h
drawer_p.h
drawer.h
appbar.h
appbar_p.h
autocomplete.h
autocomplete_p.h
paper.h
paper_p.h
table.h
table_p.h
layouts/snackbarlayout.h
layouts/snackbarlayout_p.h
autocomplete_internal.h
menu.h
menu_p.h
menu_internal.h
list.h
list_p.h
listitem.h
listitem_p.h
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)

View File

@ -1,8 +1,8 @@
#include "qtmaterialappbar.h"
#include "qtmaterialappbar_p.h"
#include "appbar.h"
#include "appbar_p.h"
#include <QtWidgets/QGraphicsDropShadowEffect>
#include <QPainter>
#include "lib/qtmaterialstyle.h"
#include "lib/style.h"
namespace md {
/*!

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAPPBAR_H
#define QTMATERIALAPPBAR_H
#ifndef APPBAR_H
#define APPBAR_H
#include <QtWidgets/QWidget>
#include <QtWidgets/QHBoxLayout>
@ -50,4 +50,4 @@ inline QHBoxLayout *AppBar::appBarLayout() const
}
#endif // QTMATERIALAPPBAR_H
#endif // APPBAR_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAPPBAR_P_H
#define QTMATERIALAPPBAR_P_H
#ifndef APPBAR_P_H
#define APPBAR_P_H
#include <QtGlobal>
#include <QColor>
@ -28,4 +28,4 @@ public:
}
#endif // QTMATERIALAPPBAR_P_H
#endif // APPBAR_P_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialautocomplete_p.h"
#include "autocomplete_p.h"
namespace md

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALAUTOCOMPLETE_H
#define QTMATERIALAUTOCOMPLETE_H
#ifndef AUTOCOMPLETE_H
#define AUTOCOMPLETE_H
#include "qtmaterialtextfield.h"
#include "textfield.h"
namespace md
{
@ -35,4 +35,4 @@ private:
}
#endif // QTMATERIALAUTOCOMPLETE_H
#endif // AUTOCOMPLETE_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialautocomplete_internal.h"
#include "autocomplete_internal.h"
#include <QSignalTransition>
#include <QPropertyAnimation>
#include <QtWidgets/QGraphicsOpacityEffect>

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALAUTOCOMPLETESTATEMACHINE_H
#define QTMATERIALAUTOCOMPLETESTATEMACHINE_H
#ifndef AUTOCOMPLETESTATEMACHINE_H
#define AUTOCOMPLETESTATEMACHINE_H
#include <QStateMachine>
#include "qtmaterialautocomplete.h"
#include "autocomplete.h"
namespace md
{
@ -31,4 +31,4 @@ private:
}
#endif // QTMATERIALAUTOCOMPLETESTATEMACHINE_H
#endif // AUTOCOMPLETESTATEMACHINE_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAUTOCOMPLETE_P_H
#define QTMATERIALAUTOCOMPLETE_P_H
#ifndef AUTOCOMPLETE_P_H
#define AUTOCOMPLETE_P_H
#include <QtWidgets/QGraphicsDropShadowEffect>
#include <QtWidgets/QVBoxLayout>
@ -8,10 +8,10 @@
#include <QPainter>
#include <QDebug>
#include "qtmaterialautocomplete.h"
#include "qtmaterialautocomplete_internal.h"
#include "qtmaterialflatbutton.h"
#include "qtmaterialtextfield_p.h"
#include "autocomplete.h"
#include "autocomplete_internal.h"
#include "flatbutton.h"
#include "textfield_p.h"
namespace md
{
@ -40,4 +40,4 @@ public:
}
#endif // QTMATERIALAUTOCOMPLETE_P_H
#endif // AUTOCOMPLETE_P_H

View File

@ -1,8 +1,8 @@
#include "qtmaterialavatar.h"
#include "qtmaterialavatar_p.h"
#include "avatar.h"
#include "avatar_p.h"
#include <QPainter>
#include <QPainterPath>
#include "lib/qtmaterialstyle.h"
#include "lib/style.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALAVATAR_H
#define QTMATERIALAVATAR_H
#ifndef AVATAR_H
#define AVATAR_H
#include <QtWidgets/QWidget>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md {
class AvatarPrivate;
@ -49,4 +49,4 @@ private:
};
}
#endif // QTMATERIALAVATAR_H
#endif // AVATAR_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAVATAR_P_H
#define QTMATERIALAVATAR_P_H
#ifndef AVATAR_P_H
#define AVATAR_P_H
#include <QtGlobal>
#include <QChar>
@ -7,7 +7,7 @@
#include <QIcon>
#include <QPixmap>
#include <QColor>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -39,4 +39,4 @@ public:
}
#endif // QTMATERIALAVATAR_P_H
#endif // AVATAR_P_H

View File

@ -1,7 +1,7 @@
#include "qtmaterialbadge.h"
#include "qtmaterialbadge_p.h"
#include "badge.h"
#include "badge_p.h"
#include <QPainter>
#include "lib/qtmaterialstyle.h"
#include "lib/style.h"
namespace md
{

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALBADGE_H
#define QTMATERIALBADGE_H
#ifndef BADGE_H
#define BADGE_H
#include "lib/qtmaterialoverlaywidget.h"
#include "lib/overlaywidget.h"
namespace md
{
@ -62,4 +62,4 @@ private:
}
#endif // QTMATERIALBADGE_H
#endif // BADGE_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALBADGE_P_H
#define QTMATERIALBADGE_P_H
#ifndef BADGE_P_H
#define BADGE_P_H
#include <QtGlobal>
#include <QSize>
@ -34,4 +34,4 @@ public:
};
}
#endif // QTMATERIALBADGE_P_H
#endif // BADGE_P_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialcheckbox_p.h"
#include "checkbox_p.h"
namespace md
{

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALCHECKBOX_H
#define QTMATERIALCHECKBOX_H
#ifndef CHECKBOX_H
#define CHECKBOX_H
#include "lib/qtmaterialcheckable.h"
#include "lib/checkable.h"
namespace md
{
@ -22,4 +22,4 @@ private:
};
}
#endif // QTMATERIALCHECKBOX_H
#endif // CHECKBOX_H

View File

@ -1,13 +1,13 @@
#ifndef QTMATERIALCHECKBOX_P_H
#define QTMATERIALCHECKBOX_P_H
#ifndef CHECKBOX_P_H
#define CHECKBOX_P_H
#include <QPropertyAnimation>
#include <QSignalTransition>
#include <QState>
#include "qtmaterialcheckbox.h"
#include "lib/qtmaterialcheckable_internal.h"
#include "lib/qtmaterialcheckable_p.h"
#include "checkbox.h"
#include "lib/checkable_internal.h"
#include "lib/checkable_p.h"
namespace md
{
@ -26,4 +26,4 @@ public:
void init();
};
}
#endif // QTMATERIALCHECKBOX_P_H
#endif // CHECKBOX_P_H

View File

@ -1,11 +1,11 @@
#include "qtmaterialcircularprogress.h"
#include "qtmaterialcircularprogress_p.h"
#include "circularprogress.h"
#include "circularprogress_p.h"
#include <QPropertyAnimation>
#include <QParallelAnimationGroup>
#include <QPainter>
#include <QPainterPath>
#include "qtmaterialcircularprogress_internal.h"
#include "lib/qtmaterialstyle.h"
#include "circularprogress_internal.h"
#include "lib/style.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALCIRCULARPROGRESS_H
#define QTMATERIALCIRCULARPROGRESS_H
#ifndef CIRCULARPROGRESS_H
#define CIRCULARPROGRESS_H
#include <QtWidgets/QProgressBar>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -50,4 +50,4 @@ private:
}
#endif // QTMATERIALCIRCULARPROGRESS_H
#endif // CIRCULARPROGRESS_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialcircularprogress_internal.h"
#include "circularprogress_internal.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALCIRCULARPROGRESS_INTERNAL_H
#define QTMATERIALCIRCULARPROGRESS_INTERNAL_H
#ifndef CIRCULARPROGRESS_INTERNAL_H
#define CIRCULARPROGRESS_INTERNAL_H
#include <QObject>
#include "qtmaterialcircularprogress.h"
#include "circularprogress.h"
namespace md
{
@ -71,4 +71,4 @@ inline int CircularProgressDelegate::angle() const
}
#endif // QTMATERIALCIRCULARPROGRESS_INTERNAL_H
#endif // CIRCULARPROGRESS_INTERNAL_H

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALCIRCULARPROGRESS_P_H
#define QTMATERIALCIRCULARPROGRESS_P_H
#ifndef CIRCULARPROGRESS_P_H
#define CIRCULARPROGRESS_P_H
#include <QtGlobal>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -31,4 +31,4 @@ public:
}
#endif // QTMATERIALCIRCULARPROGRESS_P_H
#endif // CIRCULARPROGRESS_P_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialdialog.h"
#include "dialog.h"
namespace md
{

View File

@ -1,13 +1,13 @@
#ifndef QTMATERIALDIALOG_H
#define QTMATERIALDIALOG_H
#ifndef DIALOG_H
#define DIALOG_H
#include <QScopedPointer>
#include <QLayout>
#include "qtmaterialdialog_p.h"
#include "qtmaterialdialog_internal.h"
#include "lib/qtmaterialstatetransition.h"
#include "lib/qtmaterialoverlaywidget.h"
#include "dialog_p.h"
#include "dialog_internal.h"
#include "lib/statetransition.h"
#include "lib/overlaywidget.h"
namespace md
{
@ -39,4 +39,4 @@ private:
Q_DECLARE_PRIVATE(Dialog)
};
}
#endif // QTMATERIALDIALOG_H
#endif // DIALOG_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialdialog_internal.h"
#include "dialog_internal.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALDIALOG_INTERNAL_H
#define QTMATERIALDIALOG_INTERNAL_H
#ifndef DIALOG_INTERNAL_H
#define DIALOG_INTERNAL_H
#include <QtWidgets/QWidget>
#include <QPainter>
@ -7,7 +7,7 @@
#include <QEvent>
#include <QtWidgets/QStackedLayout>
#include "qtmaterialdialog.h"
#include "dialog.h"
namespace md
{
@ -85,5 +85,5 @@ private:
};
}
#endif // QTMATERIALDIALOG_INTERNAL_H
#endif // DIALOG_INTERNAL_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALDIALOG_P_H
#define QTMATERIALDIALOG_P_H
#ifndef DIALOG_P_H
#define DIALOG_P_H
#include <QtGlobal>
#include <QtWidgets/QApplication>
@ -36,4 +36,4 @@ public:
DialogProxy *proxy;
};
}
#endif // QTMATERIALDIALOG_P_H
#endif // DIALOG_P_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialdrawer.h"
#include "drawer.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALDRAWER_H
#define QTMATERIALDRAWER_H
#ifndef DRAWER_H
#define DRAWER_H
#include <QtWidgets/QApplication>
#include <QtWidgets/QLayout>
@ -10,9 +10,9 @@
#include <QMouseEvent>
#include <QLinearGradient>
#include "qtmaterialdrawer_p.h"
#include "qtmaterialdrawer_internal.h"
#include "lib/qtmaterialoverlaywidget.h"
#include "drawer_p.h"
#include "drawer_internal.h"
#include "lib/overlaywidget.h"
namespace md
{
@ -59,4 +59,4 @@ private:
Q_DECLARE_PRIVATE(Drawer)
};
}
#endif // QTMATERIALDRAWER_H
#endif // DRAWER_H

View File

@ -1,10 +1,10 @@
#include "qtmaterialdrawer_internal.h"
#include "drawer_internal.h"
#include <QState>
#include <QPainter>
#include <QtWidgets/QLayout>
#include <QSignalTransition>
#include <QPropertyAnimation>
#include "qtmaterialdrawer.h"
#include "drawer.h"
namespace md
{
/*!

View File

@ -2,7 +2,7 @@
#define DRAWER_INTERNAL_H
#include <QStateMachine>
#include "lib/qtmaterialoverlaywidget.h"
#include "lib/overlaywidget.h"
namespace md
{

View File

@ -1,10 +1,10 @@
#include "qtmaterialfab.h"
#include "qtmaterialfab_p.h"
#include "fab.h"
#include "fab_p.h"
#include <QtWidgets/QGraphicsDropShadowEffect>
#include <QState>
#include <QEvent>
#include <QPainter>
#include "lib/qtmaterialrippleoverlay.h"
#include "lib/rippleoverlay.h"
namespace md
{

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALFAB_H
#define QTMATERIALFAB_H
#ifndef FAB_H
#define FAB_H
#include "qtmaterialraisedbutton.h"
#include "raisedbutton.h"
namespace md
{
@ -45,4 +45,4 @@ private:
};
}
#endif // QTMATERIALFAB_H
#endif // FAB_H

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALFAB_P_H
#define QTMATERIALFAB_P_H
#ifndef FAB_P_H
#define FAB_P_H
#include "qtmaterialraisedbutton_p.h"
#include "raisedbutton_p.h"
namespace md
{
@ -49,4 +49,4 @@ inline int FloatingActionButtonPrivate::iconSize() const
return mini ? MiniIconSize : DefaultIconSize;
}
}
#endif // QTMATERIALFAB_P_H
#endif // FAB_P_H

View File

@ -1,15 +1,15 @@
#include "qtmaterialflatbutton.h"
#include "qtmaterialflatbutton_p.h"
#include "flatbutton.h"
#include "flatbutton_p.h"
#include <QPainter>
#include <QMouseEvent>
#include <QResizeEvent>
#include <QBitmap>
#include <QPainterPath>
#include <QIcon>
#include "lib/qtmaterialrippleoverlay.h"
#include "lib/qtmaterialripple.h"
#include "lib/qtmaterialstyle.h"
#include "qtmaterialflatbutton_internal.h"
#include "lib/rippleoverlay.h"
#include "lib/ripple.h"
#include "lib/style.h"
#include "flatbutton_internal.h"
namespace md
{

View File

@ -1,9 +1,9 @@
#ifndef QTMATERIALFLATBUTTON_H
#define QTMATERIALFLATBUTTON_H
#ifndef FLATBUTTON_H
#define FLATBUTTON_H
#include <QtWidgets/QPushButton>
#include <QScopedPointer>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md {
@ -113,4 +113,4 @@ private:
}
#endif // QTMATERIALFLATBUTTON_H
#endif // FLATBUTTON_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialflatbutton_internal.h"
#include "flatbutton_internal.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALFLATBUTTON_INTERNAL_H
#define QTMATERIALFLATBUTTON_INTERNAL_H
#ifndef FLATBUTTON_INTERNAL_H
#define FLATBUTTON_INTERNAL_H
#include <QStateMachine>
#include <QColor>
@ -8,8 +8,8 @@
#include <QFocusEvent>
#include <QSequentialAnimationGroup>
#include "qtmaterialflatbutton.h"
#include "lib/qtmaterialstatetransition.h"
#include "flatbutton.h"
#include "lib/statetransition.h"
namespace md
{
@ -109,4 +109,4 @@ inline qreal FlatButtonStateMachine::haloScaleFactor() const
}
}
#endif // QTMATERIALFLATBUTTON_INTERNAL_H
#endif // FLATBUTTON_INTERNAL_H

View File

@ -1,9 +1,9 @@
#ifndef QTMATERIALFLATBUTTON_P_H
#define QTMATERIALFLATBUTTON_P_H
#ifndef FLATBUTTON_P_H
#define FLATBUTTON_P_H
#include <QtGlobal>
#include <QColor>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -46,4 +46,4 @@ public:
};
}
#endif // QTMATERIALFLATBUTTON_P_H
#endif // FLATBUTTON_P_H

View File

@ -1,9 +1,9 @@
#include "qtmaterialiconbutton.h"
#include "qtmaterialiconbutton_p.h"
#include "iconbutton.h"
#include "iconbutton_p.h"
#include <QPainter>
#include <QEvent>
#include "lib/qtmaterialstyle.h"
#include "lib/qtmaterialrippleoverlay.h"
#include "lib/style.h"
#include "lib/rippleoverlay.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALICONBUTTON_H
#define QTMATERIALICONBUTTON_H
#ifndef ICONBUTTON_H
#define ICONBUTTON_H
#include <QtWidgets/QAbstractButton>
@ -44,4 +44,4 @@ private:
}
#endif // QTMATERIALICONBUTTON_H
#endif // ICONBUTTON_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALICONBUTTON_P_H
#define QTMATERIALICONBUTTON_P_H
#ifndef ICONBUTTON_P_H
#define ICONBUTTON_P_H
#include <QtGlobal>
#include <QColor>
@ -30,4 +30,4 @@ public:
}
#endif // QTMATERIALICONBUTTON_P_H
#endif // ICONBUTTON_P_H

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALSNACKBARLAYOUT_H
#define QTMATERIALSNACKBARLAYOUT_H
namespace md
{
}
#endif // QTMATERIALSNACKBARLAYOUT_H

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALSNACKBARLAYOUT_P_H
#define QTMATERIALSNACKBARLAYOUT_P_H
namespace md
{
}
#endif // QTMATERIALSNACKBARLAYOUT_P_H

View File

@ -0,0 +1,7 @@
#ifndef SNACKBARLAYOUT_H
#define SNACKBARLAYOUT_H
namespace md
{
}
#endif // SNACKBARLAYOUT_H

View File

@ -0,0 +1,7 @@
#ifndef SNACKBARLAYOUT_P_H
#define SNACKBARLAYOUT_P_H
namespace md
{
}
#endif // SNACKBARLAYOUT_P_H

View File

@ -1,9 +1,9 @@
#include "lib/qtmaterialcheckable.h"
#include "lib/qtmaterialcheckable_p.h"
#include "lib/qtmaterialrippleoverlay.h"
#include "lib/qtmaterialripple.h"
#include "lib/qtmaterialstyle.h"
#include "lib/qtmaterialcheckable_internal.h"
#include "lib/checkable.h"
#include "lib/checkable_p.h"
#include "lib/rippleoverlay.h"
#include "lib/ripple.h"
#include "lib/style.h"
#include "lib/checkable_internal.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALCHECKABLE_H
#define QTMATERIALCHECKABLE_H
#ifndef CHECKABLE_H
#define CHECKABLE_H
#include <QtWidgets/QAbstractButton>
namespace md
@ -63,4 +63,4 @@ private:
};
}
#endif // QTMATERIALCHECKABLE_H
#endif // CHECKABLE_H

View File

@ -1,8 +1,8 @@
#include "lib/qtmaterialcheckable_internal.h"
#include "lib/checkable_internal.h"
#include <QPainter>
#include <QIcon>
#include <QTransform>
#include "lib/qtmaterialcheckable.h"
#include "lib/checkable.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALCHECKABLE_INTERNAL_H
#define QTMATERIALCHECKABLE_INTERNAL_H
#ifndef CHECKABLE_INTERNAL_H
#define CHECKABLE_INTERNAL_H
#include <QtWidgets/QWidget>
#include <QColor>
@ -93,4 +93,4 @@ inline qreal CheckableIcon::opacity() const
}
}
#endif // QTMATERIALCHECKABLE_INTERNAL_H
#endif // CHECKABLE_INTERNAL_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALCHECKABLE_P_H
#define QTMATERIALCHECKABLE_P_H
#ifndef CHECKABLE_P_H
#define CHECKABLE_P_H
#include <QtGlobal>
#include <QPainter>
@ -10,7 +10,7 @@
#include <QColor>
#include <QCoreApplication>
#include "lib/qtmaterialcheckable.h"
#include "lib/checkable.h"
namespace md
{
@ -48,4 +48,4 @@ public:
};
}
#endif // QTMATERIALCHECKABLE_P_H
#endif // CHECKABLE_P_H

View File

@ -1,4 +1,4 @@
#include "lib/qtmaterialoverlaywidget.h"
#include "lib/overlaywidget.h"
#include <QEvent>
namespace md

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALOVERLAYWIDGET_H
#define QTMATERIALOVERLAYWIDGET_H
#ifndef OVERLAYWIDGET_H
#define OVERLAYWIDGET_H
#include <QtWidgets/QWidget>
@ -24,4 +24,4 @@ private:
};
}
#endif // QTMATERIALOVERLAYWIDGET_H
#endif // OVERLAYWIDGET_H

View File

@ -1,5 +1,5 @@
#include "qtmaterialripple.h"
#include "lib/qtmaterialrippleoverlay.h"
#include "ripple.h"
#include "lib/rippleoverlay.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALRIPPLE_H
#define QTMATERIALRIPPLE_H
#ifndef RIPPLE_H
#define RIPPLE_H
#include <QParallelAnimationGroup>
#include <QEasingCurve>
@ -136,4 +136,4 @@ inline void Ripple::setDuration(int msecs)
}
}
#endif // QTMATERIALRIPPLE_H
#endif // RIPPLE_H

View File

@ -1,6 +1,6 @@
#include "lib/qtmaterialrippleoverlay.h"
#include "lib/rippleoverlay.h"
#include <QPainter>
#include "lib/qtmaterialripple.h"
#include "lib/ripple.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALRIPPLEOVERLAY_H
#define QTMATERIALRIPPLEOVERLAY_H
#ifndef RIPPLEOVERLAY_H
#define RIPPLEOVERLAY_H
#include <QPainterPath>
#include "lib/qtmaterialoverlaywidget.h"
#include "lib/overlaywidget.h"
namespace md
{
@ -64,4 +64,4 @@ inline QList<Ripple *> RippleOverlay::ripples() const
}
}
#endif // QTMATERIALRIPPLEOVERLAY_H
#endif // RIPPLEOVERLAY_H

View File

@ -1,4 +1,4 @@
#include "lib/qtmaterialstatetransition.h"
#include "lib/statetransition.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALSTATETRANSITION_H
#define QTMATERIALSTATETRANSITION_H
#ifndef STATETRANSITION_H
#define STATETRANSITION_H
#include <QAbstractTransition>
#include "lib/qtmaterialstatetransitionevent.h"
#include "lib/statetransitionevent.h"
namespace md
{
@ -22,4 +22,4 @@ private:
};
}
#endif // QTMATERIALSTATETRANSITION_H
#endif // STATETRANSITION_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALSTATETRANSITIONEVENT_H
#define QTMATERIALSTATETRANSITIONEVENT_H
#ifndef STATETRANSITIONEVENT_H
#define STATETRANSITIONEVENT_H
#include <QEvent>
@ -42,4 +42,4 @@ struct StateTransitionEvent : public QEvent
};
}
#endif // QTMATERIALSTATETRANSITIONEVENT_H
#endif // STATETRANSITIONEVENT_H

View File

@ -1,6 +1,6 @@
#include "lib/qtmaterialstyle.h"
#include "lib/style.h"
#include <QFontDatabase>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALSTYLE_H
#define QTMATERIALSTYLE_H
#ifndef STYLE_H
#define STYLE_H
#include <QtWidgets/QCommonStyle>
#include "lib/qtmaterialstyle_p.h"
#include "lib/style_p.h"
#define MATERIAL_DISABLE_THEME_COLORS \
if (d->useThemeColors == true) { d->useThemeColors = false; }
@ -40,4 +40,4 @@ inline Style &Style::instance()
}
}
#endif // QTMATERIALSTYLE_H
#endif // STYLE_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALSTYLE_P_H
#define QTMATERIALSTYLE_P_H
#ifndef STYLE_P_H
#define STYLE_P_H
#include <QtGlobal>
@ -24,4 +24,4 @@ public:
};
}
#endif // QTMATERIALSTYLE_P_H
#endif // STYLE_P_H

View File

@ -1,5 +1,5 @@
#include "lib/qtmaterialtheme.h"
#include "lib/qtmaterialtheme_p.h"
#include "lib/theme.h"
#include "lib/theme_p.h"
#include <QString>
#include <QStringBuilder>
#include <QDebug>

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALTHEME_H
#define QTMATERIALTHEME_H
#ifndef THEME_H
#define THEME_H
#include <QObject>
#include <QScopedPointer>
@ -344,4 +344,4 @@ private:
};
}
#endif // QTMATERIALTHEME_H
#endif // THEME_H

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALTHEME_P_H
#define QTMATERIALTHEME_P_H
#ifndef THEME_P_H
#define THEME_P_H
#include <QHash>
#include <QColor>
@ -24,4 +24,4 @@ public:
};
}
#endif // QTMATERIALTHEME_P_H
#endif // THEME_P_H

2
components/list.cpp Normal file
View File

@ -0,0 +1,2 @@
#include "list.h"
#include "list_p.h"

4
components/list.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef LIST_H
#define LIST_H
#endif // LIST_H

4
components/list_p.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef LIST_P_H
#define LIST_P_H
#endif // LIST_P_H

2
components/listitem.cpp Normal file
View File

@ -0,0 +1,2 @@
#include "listitem.h"
#include "listitem_p.h"

4
components/listitem.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef LISTITEM_H
#define LISTITEM_H
#endif // LISTITEM_H

4
components/listitem_p.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef LISTITEM_P_H
#define LISTITEM_P_H
#endif // LISTITEM_P_H

View File

@ -1,5 +1,5 @@
#include "qtmaterialmenu.h"
#include "qtmaterialmenu_p.h"
#include "menu.h"
#include "menu_p.h"
namespace md
{

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALMENU_H
#define QTMATERIALMENU_H
#ifndef MENU_H
#define MENU_H
#include <QtWidgets/QWidget>
@ -15,4 +15,4 @@ public:
};
}
#endif // QTMATERIALMENU_H
#endif // MENU_H

View File

@ -0,0 +1,7 @@
#ifndef MENU_INTERNAL_H
#define MENU_INTERNAL_H
namespace md
{
}
#endif // MENU_INTERNAL_H

7
components/menu_p.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef MENU_P_H
#define MENU_P_H
namespace md
{
}
#endif // MENU_P_H

7
components/paper.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "paper.h"
#include "paper_p.h"
namespace md
{
}

7
components/paper.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef PAPER_H
#define PAPER_H
namespace md
{
}
#endif // PAPER_H

7
components/paper_p.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef PAPER_P_H
#define PAPER_P_H
namespace md
{
}
#endif // PAPER_P_H

View File

@ -1,10 +1,10 @@
#include "qtmaterialprogress.h"
#include "qtmaterialprogress_p.h"
#include "progress.h"
#include "progress_p.h"
#include <QPropertyAnimation>
#include <QPainter>
#include <QPainterPath>
#include "qtmaterialprogress_internal.h"
#include "lib/qtmaterialstyle.h"
#include "progress_internal.h"
#include "lib/style.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALPROGRESS_H
#define QTMATERIALPROGRESS_H
#ifndef PROGRESS_H
#define PROGRESS_H
#include <QtWidgets/QProgressBar>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -42,4 +42,4 @@ private:
Q_DECLARE_PRIVATE(ProgressBar)
};
}
#endif // QTMATERIALPROGRESS_H
#endif // PROGRESS_H

View File

@ -1,4 +1,4 @@
#include "qtmaterialprogress_internal.h"
#include "progress_internal.h"
namespace md
{

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALPROGRESS_INTERNAL_H
#define QTMATERIALPROGRESS_INTERNAL_H
#ifndef PROGRESS_INTERNAL_H
#define PROGRESS_INTERNAL_H
#include <QObject>
#include "qtmaterialprogress.h"
#include "progress.h"
namespace md
{
@ -38,4 +38,4 @@ inline qreal ProgressBarDelegate::offset() const
return m_offset;
}
}
#endif // QTMATERIALPROGRESS_INTERNAL_H
#endif // PROGRESS_INTERNAL_H

View File

@ -1,9 +1,9 @@
#ifndef QTMATERIALPROGRESS_P_H
#define QTMATERIALPROGRESS_P_H
#ifndef PROGRESS_P_H
#define PROGRESS_P_H
#include <QtGlobal>
#include <QColor>
#include "lib/qtmaterialtheme.h"
#include "lib/theme.h"
namespace md
{
@ -29,4 +29,4 @@ public:
bool useThemeColors;
};
}
#endif // QTMATERIALPROGRESS_P_H
#endif // PROGRESS_P_H

View File

@ -1,2 +0,0 @@
#include "qtmateriallist.h"
#include "qtmateriallist_p.h"

View File

@ -1,4 +0,0 @@
#ifndef QTMATERIALLIST_H
#define QTMATERIALLIST_H
#endif // QTMATERIALLIST_H

View File

@ -1,4 +0,0 @@
#ifndef QTMATERIALLIST_P_H
#define QTMATERIALLIST_P_H
#endif // QTMATERIALLIST_P_H

View File

@ -1,2 +0,0 @@
#include "qtmateriallistitem.h"
#include "qtmateriallistitem_p.h"

View File

@ -1,4 +0,0 @@
#ifndef QTMATERIALLISTITEM_H
#define QTMATERIALLISTITEM_H
#endif // QTMATERIALLISTITEM_H

View File

@ -1,4 +0,0 @@
#ifndef QTMATERIALLISTITEM_P_H
#define QTMATERIALLISTITEM_P_H
#endif // QTMATERIALLISTITEM_P_H

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALMENU_INTERNAL_H
#define QTMATERIALMENU_INTERNAL_H
namespace md
{
}
#endif // QTMATERIALMENU_INTERNAL_H

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALMENU_P_H
#define QTMATERIALMENU_P_H
namespace md
{
}
#endif // QTMATERIALMENU_P_H

View File

@ -1,7 +0,0 @@
#include "qtmaterialpaper.h"
#include "qtmaterialpaper_p.h"
namespace md
{
}

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALPAPER_H
#define QTMATERIALPAPER_H
namespace md
{
}
#endif // QTMATERIALPAPER_H

View File

@ -1,7 +0,0 @@
#ifndef QTMATERIALPAPER_P_H
#define QTMATERIALPAPER_P_H
namespace md
{
}
#endif // QTMATERIALPAPER_P_H

View File

@ -1,6 +0,0 @@
#include "qtmaterialtable.h"
#include "qtmaterialtable_p.h"
namespace md
{
}

Some files were not shown because too many files have changed in this diff Show More