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

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAPPBAR_H #ifndef APPBAR_H
#define QTMATERIALAPPBAR_H #define APPBAR_H
#include <QtWidgets/QWidget> #include <QtWidgets/QWidget>
#include <QtWidgets/QHBoxLayout> #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 #ifndef APPBAR_P_H
#define QTMATERIALAPPBAR_P_H #define APPBAR_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QColor> #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 namespace md

View File

@ -1,7 +1,7 @@
#ifndef QTMATERIALAUTOCOMPLETE_H #ifndef AUTOCOMPLETE_H
#define QTMATERIALAUTOCOMPLETE_H #define AUTOCOMPLETE_H
#include "qtmaterialtextfield.h" #include "textfield.h"
namespace md 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 <QSignalTransition>
#include <QPropertyAnimation> #include <QPropertyAnimation>
#include <QtWidgets/QGraphicsOpacityEffect> #include <QtWidgets/QGraphicsOpacityEffect>

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAUTOCOMPLETE_P_H #ifndef AUTOCOMPLETE_P_H
#define QTMATERIALAUTOCOMPLETE_P_H #define AUTOCOMPLETE_P_H
#include <QtWidgets/QGraphicsDropShadowEffect> #include <QtWidgets/QGraphicsDropShadowEffect>
#include <QtWidgets/QVBoxLayout> #include <QtWidgets/QVBoxLayout>
@ -8,10 +8,10 @@
#include <QPainter> #include <QPainter>
#include <QDebug> #include <QDebug>
#include "qtmaterialautocomplete.h" #include "autocomplete.h"
#include "qtmaterialautocomplete_internal.h" #include "autocomplete_internal.h"
#include "qtmaterialflatbutton.h" #include "flatbutton.h"
#include "qtmaterialtextfield_p.h" #include "textfield_p.h"
namespace md 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 "avatar.h"
#include "qtmaterialavatar_p.h" #include "avatar_p.h"
#include <QPainter> #include <QPainter>
#include <QPainterPath> #include <QPainterPath>
#include "lib/qtmaterialstyle.h" #include "lib/style.h"
namespace md namespace md
{ {

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALAVATAR_P_H #ifndef AVATAR_P_H
#define QTMATERIALAVATAR_P_H #define AVATAR_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QChar> #include <QChar>
@ -7,7 +7,7 @@
#include <QIcon> #include <QIcon>
#include <QPixmap> #include <QPixmap>
#include <QColor> #include <QColor>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md 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 "badge.h"
#include "qtmaterialbadge_p.h" #include "badge_p.h"
#include <QPainter> #include <QPainter>
#include "lib/qtmaterialstyle.h" #include "lib/style.h"
namespace md namespace md
{ {

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALBADGE_P_H #ifndef BADGE_P_H
#define QTMATERIALBADGE_P_H #define BADGE_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QSize> #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 namespace md
{ {

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALCIRCULARPROGRESS_H #ifndef CIRCULARPROGRESS_H
#define QTMATERIALCIRCULARPROGRESS_H #define CIRCULARPROGRESS_H
#include <QtWidgets/QProgressBar> #include <QtWidgets/QProgressBar>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md 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 namespace md
{ {

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALCIRCULARPROGRESS_INTERNAL_H #ifndef CIRCULARPROGRESS_INTERNAL_H
#define QTMATERIALCIRCULARPROGRESS_INTERNAL_H #define CIRCULARPROGRESS_INTERNAL_H
#include <QObject> #include <QObject>
#include "qtmaterialcircularprogress.h" #include "circularprogress.h"
namespace md 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 #ifndef CIRCULARPROGRESS_P_H
#define QTMATERIALCIRCULARPROGRESS_P_H #define CIRCULARPROGRESS_P_H
#include <QtGlobal> #include <QtGlobal>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md 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 namespace md
{ {

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALDIALOG_INTERNAL_H #ifndef DIALOG_INTERNAL_H
#define QTMATERIALDIALOG_INTERNAL_H #define DIALOG_INTERNAL_H
#include <QtWidgets/QWidget> #include <QtWidgets/QWidget>
#include <QPainter> #include <QPainter>
@ -7,7 +7,7 @@
#include <QEvent> #include <QEvent>
#include <QtWidgets/QStackedLayout> #include <QtWidgets/QStackedLayout>
#include "qtmaterialdialog.h" #include "dialog.h"
namespace md 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 #ifndef DIALOG_P_H
#define QTMATERIALDIALOG_P_H #define DIALOG_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QtWidgets/QApplication> #include <QtWidgets/QApplication>
@ -36,4 +36,4 @@ public:
DialogProxy *proxy; DialogProxy *proxy;
}; };
} }
#endif // QTMATERIALDIALOG_P_H #endif // DIALOG_P_H

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALDRAWER_H #ifndef DRAWER_H
#define QTMATERIALDRAWER_H #define DRAWER_H
#include <QtWidgets/QApplication> #include <QtWidgets/QApplication>
#include <QtWidgets/QLayout> #include <QtWidgets/QLayout>
@ -10,9 +10,9 @@
#include <QMouseEvent> #include <QMouseEvent>
#include <QLinearGradient> #include <QLinearGradient>
#include "qtmaterialdrawer_p.h" #include "drawer_p.h"
#include "qtmaterialdrawer_internal.h" #include "drawer_internal.h"
#include "lib/qtmaterialoverlaywidget.h" #include "lib/overlaywidget.h"
namespace md namespace md
{ {
@ -59,4 +59,4 @@ private:
Q_DECLARE_PRIVATE(Drawer) 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 <QState>
#include <QPainter> #include <QPainter>
#include <QtWidgets/QLayout> #include <QtWidgets/QLayout>
#include <QSignalTransition> #include <QSignalTransition>
#include <QPropertyAnimation> #include <QPropertyAnimation>
#include "qtmaterialdrawer.h" #include "drawer.h"
namespace md namespace md
{ {
/*! /*!

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,9 @@
#ifndef QTMATERIALFLATBUTTON_H #ifndef FLATBUTTON_H
#define QTMATERIALFLATBUTTON_H #define FLATBUTTON_H
#include <QtWidgets/QPushButton> #include <QtWidgets/QPushButton>
#include <QScopedPointer> #include <QScopedPointer>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md { 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 namespace md
{ {

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALFLATBUTTON_INTERNAL_H #ifndef FLATBUTTON_INTERNAL_H
#define QTMATERIALFLATBUTTON_INTERNAL_H #define FLATBUTTON_INTERNAL_H
#include <QStateMachine> #include <QStateMachine>
#include <QColor> #include <QColor>
@ -8,8 +8,8 @@
#include <QFocusEvent> #include <QFocusEvent>
#include <QSequentialAnimationGroup> #include <QSequentialAnimationGroup>
#include "qtmaterialflatbutton.h" #include "flatbutton.h"
#include "lib/qtmaterialstatetransition.h" #include "lib/statetransition.h"
namespace md 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 #ifndef FLATBUTTON_P_H
#define QTMATERIALFLATBUTTON_P_H #define FLATBUTTON_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QColor> #include <QColor>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md 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 "iconbutton.h"
#include "qtmaterialiconbutton_p.h" #include "iconbutton_p.h"
#include <QPainter> #include <QPainter>
#include <QEvent> #include <QEvent>
#include "lib/qtmaterialstyle.h" #include "lib/style.h"
#include "lib/qtmaterialrippleoverlay.h" #include "lib/rippleoverlay.h"
namespace md namespace md
{ {

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALICONBUTTON_P_H #ifndef ICONBUTTON_P_H
#define QTMATERIALICONBUTTON_P_H #define ICONBUTTON_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QColor> #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/checkable.h"
#include "lib/qtmaterialcheckable_p.h" #include "lib/checkable_p.h"
#include "lib/qtmaterialrippleoverlay.h" #include "lib/rippleoverlay.h"
#include "lib/qtmaterialripple.h" #include "lib/ripple.h"
#include "lib/qtmaterialstyle.h" #include "lib/style.h"
#include "lib/qtmaterialcheckable_internal.h" #include "lib/checkable_internal.h"
namespace md namespace md
{ {

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALCHECKABLE_H #ifndef CHECKABLE_H
#define QTMATERIALCHECKABLE_H #define CHECKABLE_H
#include <QtWidgets/QAbstractButton> #include <QtWidgets/QAbstractButton>
namespace md 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 <QPainter>
#include <QIcon> #include <QIcon>
#include <QTransform> #include <QTransform>
#include "lib/qtmaterialcheckable.h" #include "lib/checkable.h"
namespace md namespace md
{ {

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALCHECKABLE_INTERNAL_H #ifndef CHECKABLE_INTERNAL_H
#define QTMATERIALCHECKABLE_INTERNAL_H #define CHECKABLE_INTERNAL_H
#include <QtWidgets/QWidget> #include <QtWidgets/QWidget>
#include <QColor> #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 #ifndef CHECKABLE_P_H
#define QTMATERIALCHECKABLE_P_H #define CHECKABLE_P_H
#include <QtGlobal> #include <QtGlobal>
#include <QPainter> #include <QPainter>
@ -10,7 +10,7 @@
#include <QColor> #include <QColor>
#include <QCoreApplication> #include <QCoreApplication>
#include "lib/qtmaterialcheckable.h" #include "lib/checkable.h"
namespace md 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> #include <QEvent>
namespace md namespace md

View File

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

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALRIPPLE_H #ifndef RIPPLE_H
#define QTMATERIALRIPPLE_H #define RIPPLE_H
#include <QParallelAnimationGroup> #include <QParallelAnimationGroup>
#include <QEasingCurve> #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 <QPainter>
#include "lib/qtmaterialripple.h" #include "lib/ripple.h"
namespace md namespace md
{ {

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALRIPPLEOVERLAY_H #ifndef RIPPLEOVERLAY_H
#define QTMATERIALRIPPLEOVERLAY_H #define RIPPLEOVERLAY_H
#include <QPainterPath> #include <QPainterPath>
#include "lib/qtmaterialoverlaywidget.h" #include "lib/overlaywidget.h"
namespace md 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 namespace md
{ {

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALSTATETRANSITIONEVENT_H #ifndef STATETRANSITIONEVENT_H
#define QTMATERIALSTATETRANSITIONEVENT_H #define STATETRANSITIONEVENT_H
#include <QEvent> #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 <QFontDatabase>
#include "lib/qtmaterialtheme.h" #include "lib/theme.h"
namespace md namespace md
{ {

View File

@ -1,8 +1,8 @@
#ifndef QTMATERIALSTYLE_H #ifndef STYLE_H
#define QTMATERIALSTYLE_H #define STYLE_H
#include <QtWidgets/QCommonStyle> #include <QtWidgets/QCommonStyle>
#include "lib/qtmaterialstyle_p.h" #include "lib/style_p.h"
#define MATERIAL_DISABLE_THEME_COLORS \ #define MATERIAL_DISABLE_THEME_COLORS \
if (d->useThemeColors == true) { d->useThemeColors = false; } 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 #ifndef STYLE_P_H
#define QTMATERIALSTYLE_P_H #define STYLE_P_H
#include <QtGlobal> #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/theme.h"
#include "lib/qtmaterialtheme_p.h" #include "lib/theme_p.h"
#include <QString> #include <QString>
#include <QStringBuilder> #include <QStringBuilder>
#include <QDebug> #include <QDebug>

View File

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

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALTHEME_P_H #ifndef THEME_P_H
#define QTMATERIALTHEME_P_H #define THEME_P_H
#include <QHash> #include <QHash>
#include <QColor> #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 "menu.h"
#include "qtmaterialmenu_p.h" #include "menu_p.h"
namespace md namespace md
{ {

View File

@ -1,5 +1,5 @@
#ifndef QTMATERIALMENU_H #ifndef MENU_H
#define QTMATERIALMENU_H #define MENU_H
#include <QtWidgets/QWidget> #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 "progress.h"
#include "qtmaterialprogress_p.h" #include "progress_p.h"
#include <QPropertyAnimation> #include <QPropertyAnimation>
#include <QPainter> #include <QPainter>
#include <QPainterPath> #include <QPainterPath>
#include "qtmaterialprogress_internal.h" #include "progress_internal.h"
#include "lib/qtmaterialstyle.h" #include "lib/style.h"
namespace md namespace md
{ {

View File

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

View File

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

View File

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