change gui style
This commit is contained in:
parent
e86817fb15
commit
7a336af56c
@ -52,14 +52,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
mainWindow = this;
|
||||
processCombo = mainWindow->findChild<QComboBox*>("processCombo");
|
||||
processCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
||||
processCombo->lineEdit()->setReadOnly(true);
|
||||
ttCombo = mainWindow->findChild<QComboBox*>("ttCombo");
|
||||
ttCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
||||
ttCombo->lineEdit()->setReadOnly(true);
|
||||
extenCombo = mainWindow->findChild<QComboBox*>("extenCombo");
|
||||
extenCombo->lineEdit()->setAlignment(Qt::AlignHCenter);
|
||||
extenCombo->lineEdit()->setReadOnly(true);
|
||||
textOutput = mainWindow->findChild<QPlainTextEdit*>("textOutput");
|
||||
|
||||
hostSignaller->Initialize();
|
||||
@ -69,7 +63,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(hostSignaller, &HostSignaller::RemoveThread, this, &MainWindow::RemoveThread);
|
||||
connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput);
|
||||
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::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);
|
||||
extenCombo->clear();
|
||||
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()
|
||||
@ -254,5 +248,5 @@ void MainWindow::on_rmvExtenButton_clicked()
|
||||
DeleteFileW(extenFileName.toStdWString().c_str());
|
||||
extenCombo->clear();
|
||||
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>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>NextHooker</string>
|
||||
</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">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="leftMargin">
|
||||
@ -42,7 +55,7 @@
|
||||
<widget class="QFrame" name="options">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>2</horstretch>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
@ -98,7 +111,7 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="processCombo">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="insertPolicy">
|
||||
<enum>QComboBox::InsertAtBottom</enum>
|
||||
@ -186,7 +199,7 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="extenCombo">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -240,7 +253,7 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="ttCombo">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="maxVisibleItems">
|
||||
<number>50</number>
|
||||
@ -255,11 +268,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@ -276,7 +284,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>949</width>
|
||||
<height>20</height>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
Loading…
Reference in New Issue
Block a user