mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Ref T219, changed UI element for login buttons
QFrame based instead of QGroupBox based
This commit is contained in:
@@ -22,7 +22,7 @@ using namespace BlackCore::Context;
|
|||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
CLoginModeButtons::CLoginModeButtons(QWidget *parent) :
|
CLoginModeButtons::CLoginModeButtons(QWidget *parent) :
|
||||||
QGroupBox(parent),
|
QFrame(parent),
|
||||||
ui(new Ui::CLoginModeButtons)
|
ui(new Ui::CLoginModeButtons)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "blackcore/network.h"
|
#include "blackcore/network.h"
|
||||||
#include "blackgui/blackguiexport.h"
|
#include "blackgui/blackguiexport.h"
|
||||||
#include <QGroupBox>
|
#include <QFrame>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QScopedPointer>
|
#include <QScopedPointer>
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ namespace Ui { class CLoginModeButtons; }
|
|||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
//! Display login modes (normal, stealth, ...)
|
//! Display login modes (normal, stealth, ...)
|
||||||
class BLACKGUI_EXPORT CLoginModeButtons : public QGroupBox
|
class BLACKGUI_EXPORT CLoginModeButtons : public QFrame
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>CLoginModeButtons</class>
|
<class>CLoginModeButtons</class>
|
||||||
<widget class="QGroupBox" name="CLoginModeButtons">
|
<widget class="QFrame" name="CLoginModeButtons">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>257</width>
|
<width>285</width>
|
||||||
<height>49</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Login mode </string>
|
<string>Login mode</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<property name="title" stdset="0">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="flat">
|
<property name="flat" stdset="0">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="hl_LoginMode">
|
<layout class="QHBoxLayout" name="hl_LoginMode">
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lbl_LognMode">
|
<widget class="QLabel" name="lbl_LognMode">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Mode</string>
|
<string>Login mode</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item alignment="Qt::AlignRight">
|
||||||
<widget class="QRadioButton" name="rb_LoginNormal">
|
<widget class="QRadioButton" name="rb_LoginNormal">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Normal</string>
|
<string>Normal</string>
|
||||||
@@ -52,20 +52,33 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item alignment="Qt::AlignRight">
|
||||||
<widget class="QRadioButton" name="rb_LoginStealth">
|
<widget class="QRadioButton" name="rb_LoginStealth">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Stealth</string>
|
<string>Stealth</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item alignment="Qt::AlignRight">
|
||||||
<widget class="QRadioButton" name="rb_LoginObserver">
|
<widget class="QRadioButton" name="rb_LoginObserver">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Observer</string>
|
<string>Observer</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="hs_LoginModeButtons">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|||||||
Reference in New Issue
Block a user