mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T146, read only mode for login mode (so it can be used as display only UI element)
Also some minor tweaks/formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
946bdb964e
commit
7ad666c346
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "blackcore/network.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
#include <QGroupBox>
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
@@ -22,7 +21,6 @@
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CLoginModeButtons; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
//! Display login modes (normal, stealth, ...)
|
||||
@@ -35,7 +33,7 @@ namespace BlackGui
|
||||
explicit CLoginModeButtons(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CLoginModeButtons();
|
||||
virtual ~CLoginModeButtons();
|
||||
|
||||
//! Get login mode, \sa BlackCore::INetwork::LoginMode
|
||||
BlackCore::INetwork::LoginMode getLoginMode() const;
|
||||
@@ -43,11 +41,14 @@ namespace BlackGui
|
||||
//! Set login mode
|
||||
void setLoginMode(BlackCore::INetwork::LoginMode mode);
|
||||
|
||||
//! Set to read only
|
||||
void setReadOnly(bool readonly);
|
||||
|
||||
private:
|
||||
void configureLoginModes();
|
||||
|
||||
QScopedPointer<Ui::CLoginModeButtons> ui;
|
||||
};
|
||||
}
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user