Commit dce14ef2 authored by tpfeiffe's avatar tpfeiffe

some small fixes

parent fa23a564
Pipeline #175 failed with stages
#include "gamescreen.h"
#include "ui_gamescreen.h"
#include <QFileDialog>
#include <QMessageBox>
GameScreen::GameScreen(QWidget *parent) :
......@@ -42,7 +43,8 @@ GameScreen::GameScreen(QWidget *parent) :
connect(ui->_w_answering, SIGNAL(correctAnswer()), this, SLOT(correctAnswer()));
connect(ui->_w_answering, SIGNAL(wrongAnswer()), this, SLOT(wrongAnswer()));
database.setRootDir("/home/pfeiffer/projects/CTQuiz/database/");
auto databasePath = QFileDialog::getExistingDirectory(this, "Datenbank-Ordner auswählen");
database.setRootDir(databasePath);
reset();
}
......
......@@ -50,7 +50,7 @@
<widget class="QPushButton" name="_pB_task">
<property name="geometry">
<rect>
<x>790</x>
<x>1600</x>
<y>970</y>
<width>301</width>
<height>101</height>
......@@ -96,9 +96,9 @@
<property name="geometry">
<rect>
<x>50</x>
<y>960</y>
<y>930</y>
<width>801</width>
<height>41</height>
<height>61</height>
</rect>
</property>
<property name="text">
......@@ -134,10 +134,10 @@
<widget class="QLabel" name="_L_totalScore">
<property name="geometry">
<rect>
<x>1300</x>
<y>1000</y>
<width>561</width>
<height>41</height>
<x>1120</x>
<y>980</y>
<width>471</width>
<height>81</height>
</rect>
</property>
<property name="text">
......
......@@ -86,6 +86,7 @@ const QStringList &ImageDatabase::tasks() const
void ImageDatabase::initializeDatabase()
{
_database.clear();
auto list = _rootDir.entryList(QDir::NoDotAndDotDot | QDir::Dirs);
qInfo() << list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment