1
0
Fork 0
mirror of https://gitlab.com/niansa/qcommsy.git synced 2025-03-06 20:53:33 +01:00

Removed floating headers

This commit is contained in:
niansa 2020-08-16 16:20:36 +02:00
parent 1845bc9fdf
commit 62f7aa2fb6
2 changed files with 6 additions and 7 deletions

View file

@ -10,8 +10,6 @@
#include <csignal>
#include <cstdio>
#include <unistd.h>
#include <signal.h>
#include <execinfo.h>
#include <curlpp/cURLpp.hpp>
#include <curlpp/Easy.hpp>

View file

@ -134,23 +134,24 @@ void _UILoader::loginWindow(QMainWindow *w, const QString& failure) {
thisui->failureText->setText(failure);
// Connect connection handlers
w->connect(auther, &libCommsyAuth::authDone, [this, thisui, w] (QNetworkReply *netReply) {
w->connect(auther, &libCommsyAuth::authDone, [this, thisui, w] (QNetworkReply *netReply) { // Finished authentication
// Login
try {
settings->setValue("server_sid", auther->getSID(netReply));
auther->deleteLater();
cacheInvalidate = true;
overviewWindow(w, false);
return overviewWindow(w, false);
} catch (authFailureError&) {
thisui->failureText->setText("Die eingegebenen Anmeldedaten sind ungültig");
} catch (invalidRoomError&) {
thisui->failureText->setText("Der angegebene Raum existiert nicht");
}
});
w->connect(auther, &libCommsyAuth::connectionDone, [this, thisui, w] (QNetworkReply *netReply) {
w->connect(auther, &libCommsyAuth::connectionDone, [this, thisui, w] (QNetworkReply *netReply) { // Finished test connection
auther->sendAuth(auther->getAuthUrl(netReply), thisui->usernameLine->text(), thisui->passwordLine->text());
});
w->connect(auther, &libCommsyAuth::connectionNotfound, [this, thisui, w] (QNetworkReply *) {
w->connect(auther, &libCommsyAuth::connectionNotfound, [this, thisui, w] (QNetworkReply *) { // "server not found" during test connection
thisui->failureText->setText("Der angegebene Server existiert nicht");
});
@ -237,7 +238,7 @@ int main(int argc, char *argv[]) {
_UILoader UILoader;
// Set theme
a.setStyle(QStyleFactory::create("windows"));
a.setStyle(QStyleFactory::create("android"));
// Load initial window
UILoader.loginWindow(&w);