remove some useless files
This commit is contained in:
@@ -37,3 +37,5 @@ Makefile*
|
||||
# QtCtreator CMake
|
||||
CMakeLists.txt.user*
|
||||
|
||||
msvc_make.bat
|
||||
|
||||
|
||||
@@ -39,3 +39,4 @@ RESOURCES += \
|
||||
resource.qrc
|
||||
|
||||
RC_ICONS = icons\favicon.ico
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "maintray.h"
|
||||
#include "maintray.h"
|
||||
#include <QApplication>
|
||||
#include <QTranslator>
|
||||
#include <QFont>
|
||||
@@ -6,10 +6,7 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QTranslator t;
|
||||
t.load(QString(":/translations/qt_zh_CN.qm"));
|
||||
QApplication a(argc, argv);
|
||||
a.installTranslator(&t);
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
a.setApplicationName(QObject::tr("NEU-Monitor"));
|
||||
a.setWindowIcon(QIcon(QObject::tr(":/icon/favicon.ico")));
|
||||
|
||||
+4
-2
@@ -1,4 +1,5 @@
|
||||
#include "maintray.h"
|
||||
#include "maintray.h"
|
||||
|
||||
|
||||
MainTray::MainTray(QObject *parent) : QSystemTrayIcon(parent),
|
||||
//初始化menu
|
||||
@@ -320,7 +321,8 @@ QString MainTray::getQtVersion()
|
||||
|
||||
QString MainTray::getGccVersion()
|
||||
{
|
||||
return QString::number(__GNUC__)+tr(".")+QString::number(__GNUC_MINOR__)+tr(".")+QString::number(__GNUC_PATCHLEVEL__);
|
||||
return *(new QString());
|
||||
// return QString::number(__GNUC__)+tr(".")+QString::number(__GNUC_MINOR__)+tr(".")+QString::number(__GNUC_PATCHLEVEL__);
|
||||
}
|
||||
|
||||
//void MainTray::openLogFile()
|
||||
|
||||
+5
-1
@@ -1,6 +1,10 @@
|
||||
#ifndef MAINTRAY_H
|
||||
#ifndef MAINTRAY_H
|
||||
#define MAINTRAY_H
|
||||
|
||||
#if _MSC_VER >= 1600
|
||||
#pragma execution_character_set("utf-8")
|
||||
#endif
|
||||
|
||||
#include <QObject>
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QMenu>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include "netcontroller.h"
|
||||
#include "netcontroller.h"
|
||||
|
||||
NetController::NetController(QByteArray id, QByteArray passwd, QObject *parent) : QObject(parent),
|
||||
username(id), password(passwd), manager(this)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#ifndef NETCONTROLLER_H
|
||||
#ifndef NETCONTROLLER_H
|
||||
#define NETCONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
+3
-1
@@ -1,4 +1,4 @@
|
||||
#include "optionswindow.h"
|
||||
#include "optionswindow.h"
|
||||
|
||||
OptionsWindow::OptionsWindow(QByteArray id, QByteArray pass, int traffic, QWidget *parent) : QMainWindow(parent)
|
||||
{
|
||||
@@ -13,12 +13,14 @@ OptionsWindow::OptionsWindow(QByteArray id, QByteArray pass, int traffic, QWidge
|
||||
|
||||
idEdit = new QLineEdit(this);
|
||||
idEdit->setText(id);
|
||||
idEdit->setPlaceholderText(tr("学(工)号"));
|
||||
|
||||
passwordEdit = new QLineEdit(this);
|
||||
passwordEdit->setEchoMode(QLineEdit::Password);
|
||||
passwordEdit->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
passwordEdit->setText(pass);
|
||||
passwordEdit->setToolTip(tr("密码仅用于登陆"));
|
||||
passwordEdit->setPlaceholderText(tr("请输入密码"));
|
||||
|
||||
// mobileCheck = new QCheckBox(tr("作为移动端登陆"), this);
|
||||
// mobileCheck->setChecked(isMobile);
|
||||
|
||||
+5
-1
@@ -1,6 +1,10 @@
|
||||
#ifndef OPTIONSWINDOW_H
|
||||
#ifndef OPTIONSWINDOW_H
|
||||
#define OPTIONSWINDOW_H
|
||||
|
||||
#if _MSC_VER >= 1600
|
||||
#pragma execution_character_set("utf-8")
|
||||
#endif
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QWidget>
|
||||
#include <QTabWidget>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[Paths]
|
||||
Plugins = /usr/lib/qt/plugins/
|
||||
@@ -1,10 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/icon"/>
|
||||
<qresource prefix="/">
|
||||
<file>translations/qt_zh_CN.qm</file>
|
||||
<file>icons/favicon.ico</file>
|
||||
<file>icons/offline.ico</file>
|
||||
<file>resource/SourceHanSansCN-Regular.otf</file>
|
||||
<file>qt/etc/qt.conf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user