ver: add version show.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include "frelayGUI.h"
|
||||
#include "frelayGUI.h"
|
||||
|
||||
#include <QSplitter>
|
||||
#include <QLabel>
|
||||
|
||||
#include "./ui_frelayGUI.h"
|
||||
#include <fversion.h>
|
||||
|
||||
static LogPrint* logPrint = nullptr;
|
||||
|
||||
@@ -13,6 +15,13 @@ frelayGUI::frelayGUI(QWidget* parent) : QMainWindow(parent), ui(new Ui::frelayGU
|
||||
ControlSignal();
|
||||
ControlLayout();
|
||||
resize(1500, 800);
|
||||
|
||||
setWindowTitle(QString(tr("frelay %1")).arg(VERSION_NUM));
|
||||
|
||||
QLabel* permanent = new QLabel(this);
|
||||
permanent->setFrameStyle(QFrame::Box | QFrame::Sunken);
|
||||
permanent->setText(QString("%1 on %2").arg(VERSION_GIT_COMMIT).arg(VERSION_GIT_BRANCH));
|
||||
this->statusBar()->addPermanentWidget(permanent);
|
||||
}
|
||||
|
||||
frelayGUI::~frelayGUI()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef FRELAYGUI_H
|
||||
#ifndef FRELAYGUI_H
|
||||
#define FRELAYGUI_H
|
||||
|
||||
#include <ClientCore.h>
|
||||
|
||||
@@ -13,7 +13,7 @@ int main(int argc, char* argv[])
|
||||
QFont font("Microsoft YaHei", 9);
|
||||
a.setFont(font);
|
||||
a.setWindowIcon(QIcon(":/ico/main.ico"));
|
||||
a.setStyle("Windows");
|
||||
//a.setStyle("Windows");
|
||||
#endif
|
||||
|
||||
frelayGUI w;
|
||||
|
||||
Reference in New Issue
Block a user