summaryrefslogtreecommitdiffstats
path: root/36c3/Qt/src/window.cpp
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-12-08 16:16:16 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-12-26 00:52:21 +0100
commit438f67d41d91e81fae0ed4cef2e9da882515377f (patch)
treea0518b55526616c34272eb25ec8cd5036b2cde9e /36c3/Qt/src/window.cpp
parent5437107965a66855246b97157dd38d741c44aa94 (diff)
downloadpresentations-438f67d41d91e81fae0ed4cef2e9da882515377f.tar.gz
presentations-438f67d41d91e81fae0ed4cef2e9da882515377f.tar.bz2
presentations-438f67d41d91e81fae0ed4cef2e9da882515377f.zip
Last qt changes
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
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";
}