mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add styles
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#include "ui_mainwindow.h"
|
||||
#include "updatenotifywidget.h"
|
||||
|
||||
#include <QFontDatabase>
|
||||
#include <QPaintEvent>
|
||||
#include <QPainter>
|
||||
#include <QTimer>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
@@ -9,6 +12,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
, ui(new Ui::MainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
painting();
|
||||
initialize();
|
||||
|
||||
}
|
||||
@@ -292,6 +296,7 @@ void MainWindow::debugLog(QString message)
|
||||
ui->debugText->append(message);
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::callUpdateList()
|
||||
{
|
||||
updateController->calculateStreamingHash();
|
||||
@@ -389,6 +394,20 @@ void MainWindow::checkUpdate()
|
||||
ui->inlineTextDebug->setText(tr("Проверка обновлений..."));
|
||||
}
|
||||
|
||||
void MainWindow::painting()
|
||||
{
|
||||
// QPixmap background(":/resource/SSJ-100.jpg");
|
||||
// QColor color(77,77,77,255);
|
||||
// background.scaled(this->size(),Qt::IgnoreAspectRatio);
|
||||
// QPalette palette;
|
||||
// palette.setBrush(QPalette::Window,background);
|
||||
// palette.dark();
|
||||
// this->setPalette(palette);
|
||||
|
||||
QFontDatabase::addApplicationFont(":/Fonts/Kanit Cyrillic.ttf");
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
connectionThread->quit();
|
||||
|
||||
Reference in New Issue
Block a user