Merge pull request #142 from amnezia-vpn/qt-migration-cleanup
Qt migration cleanup
This commit is contained in:
commit
131601d9d2
159 changed files with 8 additions and 11042 deletions
|
|
@ -13,7 +13,7 @@ GeneralSettingsLogic::GeneralSettingsLogic(UiLogic *logic, QObject *parent):
|
|||
void GeneralSettingsLogic::onUpdatePage()
|
||||
{
|
||||
uiLogic()->selectedServerIndex = m_settings->defaultServerIndex();
|
||||
set_existsAnyServer(uiLogic()->selectedServerIndex >= 0);
|
||||
set_existsAnyServer(uiLogic()->selectedServerIndex >= 0);
|
||||
uiLogic()->selectedDockerContainer = m_settings->defaultContainer(m_settings->defaultServerIndex());
|
||||
|
||||
set_pushButtonGeneralSettingsShareConnectionEnable(m_settings->haveAuthData(m_settings->defaultServerIndex()));
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class GeneralSettingsLogic : public PageLogicBase
|
|||
Q_OBJECT
|
||||
|
||||
AUTO_PROPERTY(bool, pushButtonGeneralSettingsShareConnectionEnable)
|
||||
AUTO_PROPERTY(bool, existsAnyServer)
|
||||
AUTO_PROPERTY(bool, existsAnyServer)
|
||||
|
||||
public:
|
||||
Q_INVOKABLE void onUpdatePage() override;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
#include <QDataStream>
|
||||
#include <QMessageBox>
|
||||
|
||||
|
||||
#include "qrcodegen.hpp"
|
||||
|
||||
#include "ShareConnectionLogic.h"
|
||||
|
|
|
|||
|
|
@ -184,10 +184,6 @@ bool StartPageLogic::importConnectionFromCode(QString code)
|
|||
return importConnection(o);
|
||||
}
|
||||
|
||||
o = QJsonDocument::fromJson(ba).object();
|
||||
if (!o.isEmpty()) {
|
||||
return importConnection(o);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ BasicButtonType {
|
|||
|
||||
background: Item {}
|
||||
contentItem: Item {
|
||||
// anchors.fill: parent
|
||||
SvgImageType {
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
//import QtGraphicalEffects 1.12
|
||||
import QtQuick.Shapes 1.4
|
||||
|
||||
Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue