mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-31 22:00:10 +01:00
* Fix rpcs3qt Linux build * Files clean up * Add base MainWindow class * Add slot stubs * Update MainWindow::DecryptSPRXLibraries * Add SettingsDialog base class and tab stubs * Add CoreTab base layout * Add compile guards * Minor fixes * Add GraphicsTab base layout * Add OK button signal * Remove QML stuff * Fix indentation * Add AudioTab base layout * Add InputTab base layout * Fix layouts * Add MiscTab base layout * Fix layouts * Add NetworkingTab base layout * Add SystemTab base layout * Fix button layout in SettingsDialog * Make SettingsDialog resizable * Add base dock widget stubs * Add very base PadSettingsDialog layout * Add combo box entries * Abb LogFrame base layout * Fix indent * Abb GameListFrame base layout * Minor fixes * Add AutoPauseSettingsDialog base layout
37 lines
852 B
C++
37 lines
852 B
C++
#ifdef QT_UI
|
|
|
|
#include <QComboBox>
|
|
#include <QGroupBox>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
|
|
#include "networkingtab.h"
|
|
|
|
NetworkingTab::NetworkingTab(QWidget *parent) : QWidget(parent)
|
|
{
|
|
// Connection status
|
|
QGroupBox *netStatus = new QGroupBox(tr("Connection status"));
|
|
|
|
QComboBox *netStatusBox = new QComboBox;
|
|
netStatusBox->addItem(tr("Disconnected"));
|
|
netStatusBox->addItem(tr("Connecting"));
|
|
netStatusBox->addItem(tr("Obtaining IP"));
|
|
netStatusBox->addItem(tr("IP obtained"));
|
|
|
|
QVBoxLayout *netStatusVbox = new QVBoxLayout;
|
|
netStatusVbox->addWidget(netStatusBox);
|
|
netStatus->setLayout(netStatusVbox);
|
|
|
|
// Main layout
|
|
QVBoxLayout *vbox = new QVBoxLayout;
|
|
vbox->addWidget(netStatus);
|
|
vbox->addStretch();
|
|
|
|
QHBoxLayout *hbox = new QHBoxLayout;
|
|
hbox->addLayout(vbox);
|
|
hbox->addStretch();
|
|
setLayout(hbox);
|
|
}
|
|
|
|
#endif // QT_UI
|