summaryrefslogtreecommitdiffstats
path: root/36c3/Qt/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to '36c3/Qt/src/window.cpp')
-rw-r--r--36c3/Qt/src/window.cpp41
1 files changed, 33 insertions, 8 deletions
diff --git a/36c3/Qt/src/window.cpp b/36c3/Qt/src/window.cpp
index ea0cb44..61e2084 100644
--- a/36c3/Qt/src/window.cpp
+++ b/36c3/Qt/src/window.cpp
@@ -1,13 +1,38 @@
+#include <string>
+
#include "window.h"
+#include <QLabel>
#include <QPushButton>
-Window::Window(QWidget *parent) :
- QWidget(parent)
- {
- // Set size of the window
- setFixedSize(100, 50);
- // Create and position the button
- m_button = new QPushButton("Hello World", this);
- m_button->setGeometry(10, 10, 80, 30);
+Slides::Slides(QWidget *parent) : QWidget(parent)
+{
+ // Set size of the window
+ // setFixedSize(100, 50);
+
+ // Create and position the button
+ // m_button = new QPushButton("Hello World", this);
+ // m_button->setGeometry(10, 10, 80, 30);
+
+ QLabel title {"Replicant"};
+
+ // connect(
+ // m_button,
+ // SIGNAL(released()),
+ // this,
+ // SLOT(handleButton())
+ // );
+ title.show();
+}
+
+void Slides::setTitle(const QString& title)
+{
+ // m_button->setText(title);
+}
+
+void Slides::handleButton()
+{
+ m_button->setText("Example");
+// m_button->resize(100,100);
+// std::cout << "Hello world";
}