diff --git a/examples/tableexamples.cpp b/examples/tableexamples.cpp index e69de29..1ea7fa5 100644 --- a/examples/tableexamples.cpp +++ b/examples/tableexamples.cpp @@ -0,0 +1,29 @@ +#include +#include "tableexamples.h" +#include "components/table.h" +#include "frame.h" + +TableExamples::TableExamples(QWidget *parent) + : ExampleList(parent) +{ + QLayout *mainLayout = widget()->layout(); + + { + Table *table = new Table; + + table->setRowCount(70); + table->setColumnCount(5); + + Frame *frame = new Frame; + frame->setCodeSnippet( + "" + ); + frame->setWidget(table); + + mainLayout->addWidget(frame); + } +} + +TableExamples::~TableExamples() +{ +} diff --git a/examples/tableexamples.h b/examples/tableexamples.h index 029b7c0..08f4893 100644 --- a/examples/tableexamples.h +++ b/examples/tableexamples.h @@ -1,4 +1,15 @@ #ifndef TABLEEXAMPLES_H #define TABLEEXAMPLES_H +#include "examplelist.h" + +class TableExamples : public ExampleList +{ + Q_OBJECT + +public: + explicit TableExamples(QWidget *parent = 0); + ~TableExamples(); +}; + #endif // TABLEEXAMPLES_H