Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "mainwindow.h"
- #include "ui_mainwindow.h"
- #include "ui_configurator.h"
- #include <QUrl>
- #include <QDesktopServices>
- #include <QtDebug>
- #include "screenrecorder.h"
- #include "settings.h"
- #include "global.h"
- #include <QSizeGrip>
- #include <QToolBar>
- #include <QToolButton>
- using namespace GW2;
- MainWindow::MainWindow(QWidget *parent) :
- QMainWindow(parent),
- ui(new Ui::MainWindow),
- m_Configurator(this),
- update_Timer(this)
- {
- QObject::connect(&update_Timer, SIGNAL(timeout()), this, SLOT(UpdateTimer()));
- ui->setupUi(this);
- StartupHideProgressBars();
- ui->widgetExtraDetails->hide();
- ui->toolBar->setWindowFlags(Qt::WindowStaysOnTopHint);
- ui->toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
- ui->toolBar->setAttribute(Qt::WA_TranslucentBackground);
- this->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);
- this->setAttribute(Qt::WA_TranslucentBackground);
- is_connected=0;
- // Resize Option
- // QGridLayout is already in *.ui file
- // Using gridLayout_3 here which is the outer layout
- QSizeGrip *sizeGripRight = new QSizeGrip(this);
- QSizeGrip *sizeGripLeft = new QSizeGrip(this);
- ui->gridLayout_Main->addWidget(sizeGripRight, 0,0,10,10,Qt::AlignBottom | Qt::AlignRight);
- ui->gridLayout_Main->addWidget(sizeGripLeft, 0,0,10,10,Qt::AlignBottom | Qt::AlignLeft);
- sizeGripLeft->setStyleSheet("background: url(''); width: 20px; height: 20px;");
- sizeGripRight->setStyleSheet("background: url(''); width: 20px; height: 20px;");
- //QObject::connect(ui->btnTransparency, SIGNAL(clicked(bool)), this, SLOT(EnableTransparency(bool)));
- //QObject::connect(ui->btnHelp, SIGNAL(clicked()), this, SLOT(LinkToWebsite()));
- //QObject::connect(ui->btnConfig, SIGNAL(clicked()), &m_Configurator, SLOT(exec()));
- QObject::connect(ui->actionEnableTransparency, SIGNAL(triggered(bool)), this, SLOT(EnableTransparency(bool)));
- QObject::connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(LinkToWebsite()));
- QObject::connect(ui->actionConfig, SIGNAL(triggered()), &m_Configurator, SLOT(exec()));
- ScreenRecorder* screenRecorder = new ScreenRecorder;
- DmgMeter* dmgMeter = &screenRecorder->GetDmgMeter();
- screenRecorder->moveToThread(&m_ScreenRecorderThread);
- Ui::Configurator* uiConfig = m_Configurator.ui;
- dmgMeter->moveToThread(&m_ScreenRecorderThread);
Advertisement
Add Comment
Please, Sign In to add comment