Create stub files for menu settings editor
This commit is contained in:
parent
4bf7a1f1ca
commit
09d2c6b1ec
|
@ -22,7 +22,8 @@ SOURCES = mainwindow.cpp \
|
|||
drawersettingseditor.cpp \
|
||||
scrollbarsettingseditor.cpp \
|
||||
appbarsettingseditor.cpp \
|
||||
autocompletesettingseditor.cpp
|
||||
autocompletesettingseditor.cpp \
|
||||
menusettingseditor.cpp
|
||||
HEADERS = mainwindow.h \
|
||||
avatarsettingseditor.h \
|
||||
badgesettingseditor.h \
|
||||
|
@ -43,7 +44,8 @@ HEADERS = mainwindow.h \
|
|||
drawersettingseditor.h \
|
||||
scrollbarsettingseditor.h \
|
||||
appbarsettingseditor.h \
|
||||
autocompletesettingseditor.h
|
||||
autocompletesettingseditor.h \
|
||||
menusettingseditor.h
|
||||
LIBS += $$top_builddir/components/$(OBJECTS_DIR)/libcomponents.a
|
||||
INCLUDEPATH += $$top_srcdir/components/
|
||||
TARGET = examples-exe
|
||||
|
|
|
@ -0,0 +1,112 @@
|
|||
#include "autocompletesettingseditor.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QDebug>
|
||||
#include <qtmaterialautocomplete.h>
|
||||
|
||||
AutoCompleteSettingsEditor::AutoCompleteSettingsEditor(QWidget *parent)
|
||||
: QWidget(parent),
|
||||
//ui(new Ui::AutoCompleteSettingsForm),
|
||||
m_autocomplete(new QtMaterialAutoComplete)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
setLayout(layout);
|
||||
|
||||
QWidget *widget = new QWidget;
|
||||
layout->addWidget(widget);
|
||||
|
||||
QWidget *canvas = new QWidget;
|
||||
canvas->setStyleSheet("QWidget { background: white; }");
|
||||
layout->addWidget(canvas);
|
||||
|
||||
canvas->setMinimumHeight(900); //
|
||||
|
||||
//ui->setupUi(widget);
|
||||
layout->setContentsMargins(20, 20, 20, 20);
|
||||
|
||||
layout = new QVBoxLayout;
|
||||
canvas->setLayout(layout);
|
||||
|
||||
QStringList states =
|
||||
{ "Alabama"
|
||||
, "Alaska"
|
||||
, "American Samoa"
|
||||
, "Arizona"
|
||||
, "Arkansas"
|
||||
, "California"
|
||||
, "Colorado"
|
||||
, "Connecticut"
|
||||
, "Delaware"
|
||||
, "District of Columbia"
|
||||
, "Florida"
|
||||
, "Georgia"
|
||||
, "Guam"
|
||||
, "Hawaii"
|
||||
, "Idaho"
|
||||
, "Illinois"
|
||||
, "Indiana"
|
||||
, "Iowa"
|
||||
, "Kansas"
|
||||
, "Kentucky"
|
||||
, "Louisiana"
|
||||
, "Maine"
|
||||
, "Maryland"
|
||||
, "Massachusetts"
|
||||
, "Michigan"
|
||||
, "Minnesota"
|
||||
, "Mississippi"
|
||||
, "Missouri"
|
||||
, "Montana"
|
||||
, "Nebraska"
|
||||
, "Nevada"
|
||||
, "New Hampshire"
|
||||
, "New Jersey"
|
||||
, "New Mexico"
|
||||
, "New York"
|
||||
, "North Carolina"
|
||||
, "North Dakota"
|
||||
, "Northern Marianas Islands"
|
||||
, "Ohio"
|
||||
, "Oklahoma"
|
||||
, "Oregon"
|
||||
, "Pennsylvania"
|
||||
, "Puerto Rico"
|
||||
, "Rhode Island"
|
||||
, "South Carolina"
|
||||
, "South Dakota"
|
||||
, "Tennessee"
|
||||
, "Texas"
|
||||
, "Utah"
|
||||
, "Vermont"
|
||||
, "Virginia"
|
||||
, "Virgin Islands"
|
||||
, "Washington"
|
||||
, "West Virginia"
|
||||
, "Wisconsin"
|
||||
, "Wyoming"
|
||||
};
|
||||
|
||||
m_autocomplete->setDataSource(states);
|
||||
|
||||
layout->addWidget(m_autocomplete);
|
||||
layout->addSpacing(600);
|
||||
layout->setAlignment(m_autocomplete, Qt::AlignCenter);
|
||||
|
||||
setupForm();
|
||||
}
|
||||
|
||||
AutoCompleteSettingsEditor::~AutoCompleteSettingsEditor()
|
||||
{
|
||||
//delete ui;
|
||||
}
|
||||
|
||||
void AutoCompleteSettingsEditor::setupForm()
|
||||
{
|
||||
}
|
||||
|
||||
void AutoCompleteSettingsEditor::updateWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void AutoCompleteSettingsEditor::selectColor()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef AUTOCOMPLETESETTINGSEDITOR_H
|
||||
#define AUTOCOMPLETESETTINGSEDITOR_H
|
||||
|
||||
#include <QWidget>
|
||||
//#include "ui_autocompletesettingsform.h"
|
||||
|
||||
#include "lib/qtmaterialoverlaywidget.h"
|
||||
|
||||
class QtMaterialAutoComplete;
|
||||
|
||||
class AutoCompleteSettingsEditor : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AutoCompleteSettingsEditor(QWidget *parent = 0);
|
||||
~AutoCompleteSettingsEditor();
|
||||
|
||||
protected slots:
|
||||
void setupForm();
|
||||
void updateWidget();
|
||||
void selectColor();
|
||||
|
||||
private:
|
||||
//Ui::AutoCompleteSettingsForm *const ui;
|
||||
QtMaterialAutoComplete *const m_autocomplete;
|
||||
};
|
||||
|
||||
#endif // AUTOCOMPLETESETTINGSEDITOR_H
|
Loading…
Reference in New Issue