change gui style
This commit is contained in:
parent
e86817fb15
commit
7a336af56c
@ -52,14 +52,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
mainWindow = this;
|
mainWindow = this;
|
||||||
processCombo = mainWindow->findChild<QComboBox*>("processCombo");
|
processCombo = mainWindow->findChild<QComboBox*>("processCombo");
|
||||||
processCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
|
||||||
processCombo->lineEdit()->setReadOnly(true);
|
|
||||||
ttCombo = mainWindow->findChild<QComboBox*>("ttCombo");
|
ttCombo = mainWindow->findChild<QComboBox*>("ttCombo");
|
||||||
ttCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
|
||||||
ttCombo->lineEdit()->setReadOnly(true);
|
|
||||||
extenCombo = mainWindow->findChild<QComboBox*>("extenCombo");
|
extenCombo = mainWindow->findChild<QComboBox*>("extenCombo");
|
||||||
extenCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
|
||||||
extenCombo->lineEdit()->setReadOnly(true);
|
|
||||||
textOutput = mainWindow->findChild<QPlainTextEdit*>("textOutput");
|
textOutput = mainWindow->findChild<QPlainTextEdit*>("textOutput");
|
||||||
|
|
||||||
hostSignaller->Initialize();
|
hostSignaller->Initialize();
|
||||||
@ -69,7 +63,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
connect(hostSignaller, &HostSignaller::RemoveThread, this, &MainWindow::RemoveThread);
|
connect(hostSignaller, &HostSignaller::RemoveThread, this, &MainWindow::RemoveThread);
|
||||||
connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput);
|
connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput);
|
||||||
std::map<int, QString> extensions = LoadExtensions();
|
std::map<int, QString> extensions = LoadExtensions();
|
||||||
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second);
|
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second);
|
||||||
Host::Open();
|
Host::Open();
|
||||||
Host::AddConsoleOutput(L"NextHooker beta v2.1.0 by Artikash\r\nSource code and more information available under GPLv3 at https://github.com/Artikash/NextHooker");
|
Host::AddConsoleOutput(L"NextHooker beta v2.1.0 by Artikash\r\nSource code and more information available under GPLv3 at https://github.com/Artikash/NextHooker");
|
||||||
}
|
}
|
||||||
@ -243,7 +237,7 @@ void MainWindow::on_addExtenButton_clicked()
|
|||||||
QFile::copy(extenFileName, copyTo);
|
QFile::copy(extenFileName, copyTo);
|
||||||
extenCombo->clear();
|
extenCombo->clear();
|
||||||
std::map<int, QString> extensions = LoadExtensions();
|
std::map<int, QString> extensions = LoadExtensions();
|
||||||
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second);
|
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_rmvExtenButton_clicked()
|
void MainWindow::on_rmvExtenButton_clicked()
|
||||||
@ -254,5 +248,5 @@ void MainWindow::on_rmvExtenButton_clicked()
|
|||||||
DeleteFileW(extenFileName.toStdWString().c_str());
|
DeleteFileW(extenFileName.toStdWString().c_str());
|
||||||
extenCombo->clear();
|
extenCombo->clear();
|
||||||
std::map<int, QString> extensions = LoadExtensions();
|
std::map<int, QString> extensions = LoadExtensions();
|
||||||
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second);
|
for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second);
|
||||||
}
|
}
|
||||||
|
@ -16,14 +16,27 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<pointsize>10</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>NextHooker</string>
|
<string>NextHooker</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QObject
|
||||||
|
{
|
||||||
|
font: 11pt "MS Shell Dlg 2";
|
||||||
|
}
|
||||||
|
#textOutput
|
||||||
|
{
|
||||||
|
font: 14pt "MS Shell Dlg 2";
|
||||||
|
}
|
||||||
|
QPushButton, QComboBox
|
||||||
|
{
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-left: 10px;
|
||||||
|
text-align: left;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
@ -42,7 +55,7 @@
|
|||||||
<widget class="QFrame" name="options">
|
<widget class="QFrame" name="options">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>2</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
@ -98,7 +111,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="processCombo">
|
<widget class="QComboBox" name="processCombo">
|
||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="insertPolicy">
|
<property name="insertPolicy">
|
||||||
<enum>QComboBox::InsertAtBottom</enum>
|
<enum>QComboBox::InsertAtBottom</enum>
|
||||||
@ -186,7 +199,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="extenCombo">
|
<widget class="QComboBox" name="extenCombo">
|
||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -240,7 +253,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="ttCombo">
|
<widget class="QComboBox" name="ttCombo">
|
||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxVisibleItems">
|
<property name="maxVisibleItems">
|
||||||
<number>50</number>
|
<number>50</number>
|
||||||
@ -255,11 +268,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<pointsize>12</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -276,7 +284,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>949</width>
|
<width>949</width>
|
||||||
<height>20</height>
|
<height>24</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user