Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/components.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
TEMPLATE = lib
CONFIG += staticlib
QT += statemachine
SOURCES = \
qtmaterialavatar.cpp \
lib/qtmaterialstyle.cpp \
Expand Down
2 changes: 1 addition & 1 deletion components/qtmaterialtabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void QtMaterialTabsPrivate::QtMaterialTabsPrivate::init()
q->setStyle(&QtMaterialStyle::instance());

tabLayout->setSpacing(0);
tabLayout->setMargin(0);
tabLayout->setContentsMargins(0, 0, 0, 0);
}

/*!
Expand Down
4 changes: 4 additions & 0 deletions examples/appbarsettingseditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ AppBarSettingsEditor::AppBarSettingsEditor(QWidget *parent)
{
QLabel *label = new QLabel("Inbox");
label->setAttribute(Qt::WA_TranslucentBackground);
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
label->setForegroundRole(QPalette::WindowText);
#else
label->setForegroundRole(QPalette::Foreground);
#endif
label->setContentsMargins(6, 0, 0, 0);

QPalette palette = label->palette();
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QT += core gui widgets
QT += core gui widgets statemachine
TEMPLATE = app
CONFIG += c++11
SOURCES = mainwindow.cpp \
Expand Down
2 changes: 1 addition & 1 deletion examples/radiobuttonsettingseditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RadioButtonSettingsEditor::RadioButtonSettingsEditor(QWidget *parent)

layout->setAlignment(Qt::AlignCenter);

layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);

setupForm();
Expand Down
2 changes: 1 addition & 1 deletion qt-material-widgets.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets statemachine

TARGET = qt-material-widgets
TEMPLATE = subdirs
Expand Down