mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
@@ -14,7 +14,6 @@ using namespace BlackCore;
|
|||||||
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
|
|
||||||
CLoginModeButtons::CLoginModeButtons(QWidget *parent) :
|
CLoginModeButtons::CLoginModeButtons(QWidget *parent) :
|
||||||
QGroupBox(parent),
|
QGroupBox(parent),
|
||||||
ui(new Ui::CLoginModeButtons)
|
ui(new Ui::CLoginModeButtons)
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKMISC_LOGINMODEBUTTONS_H
|
#ifndef BLACKGUI_LOGINMODEBUTTONS_H
|
||||||
#define BLACKMISC_LOGINMODEBUTTONS_H
|
#define BLACKGUI_LOGINMODEBUTTONS_H
|
||||||
|
|
||||||
#include "blackgui/blackguiexport.h"
|
#include "blackgui/blackguiexport.h"
|
||||||
#include "blackcore/network.h"
|
#include "blackcore/network.h"
|
||||||
@@ -43,7 +43,6 @@ namespace BlackGui
|
|||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::CLoginModeButtons> ui;
|
QScopedPointer<Ui::CLoginModeButtons> ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
@@ -72,9 +72,3 @@ uint BlackMisc::calculateHash(const QList<int> &values, const char *className)
|
|||||||
}
|
}
|
||||||
return calculateHash(list, className);
|
return calculateHash(list, className);
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString &BlackMisc::localHostNameEnvVariable()
|
|
||||||
{
|
|
||||||
static const QString hostName = QProcessEnvironment::systemEnvironment().value("COMPUTERNAME", QProcessEnvironment::systemEnvironment().value("HOSTNAME"));
|
|
||||||
return hostName;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -151,9 +151,6 @@ namespace BlackMisc
|
|||||||
//! Hash value, but with int list
|
//! Hash value, but with int list
|
||||||
BLACKMISC_EXPORT uint calculateHash(const QList<int> &values, const char *className);
|
BLACKMISC_EXPORT uint calculateHash(const QList<int> &values, const char *className);
|
||||||
|
|
||||||
//! Get local host name env.variable
|
|
||||||
BLACKMISC_EXPORT const QString &localHostNameEnvVariable();
|
|
||||||
|
|
||||||
//! Own implementation of std::make_unique, a C++14 feature not provided by GCC in C++11 mode
|
//! Own implementation of std::make_unique, a C++14 feature not provided by GCC in C++11 mode
|
||||||
template<typename T, typename... Args>
|
template<typename T, typename... Args>
|
||||||
std::unique_ptr<T> make_unique(Args &&... args)
|
std::unique_ptr<T> make_unique(Args &&... args)
|
||||||
|
|||||||
Reference in New Issue
Block a user