mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII
* Added a couple of utility macros to help with the conversion. lit() is paired with tr() for untranslated text. * QFormatStr is more explicitly for non-textual formatting strings. * Both are just #define'd to QStringLiteral()
This commit is contained in:
@@ -36,10 +36,10 @@ RemoteHost::RemoteHost()
|
||||
RemoteHost::RemoteHost(const QVariant &var)
|
||||
{
|
||||
QVariantMap map = var.toMap();
|
||||
if(map.contains("Hostname"))
|
||||
Hostname = map["Hostname"].toString();
|
||||
if(map.contains("RunCommand"))
|
||||
RunCommand = map["RunCommand"].toString();
|
||||
if(map.contains(lit("Hostname")))
|
||||
Hostname = map[lit("Hostname")].toString();
|
||||
if(map.contains(lit("RunCommand")))
|
||||
RunCommand = map[lit("RunCommand")].toString();
|
||||
|
||||
ServerRunning = Connected = Busy = VersionMismatch = false;
|
||||
}
|
||||
@@ -47,15 +47,15 @@ RemoteHost::RemoteHost(const QVariant &var)
|
||||
RemoteHost::operator QVariant() const
|
||||
{
|
||||
QVariantMap map;
|
||||
map["Hostname"] = Hostname;
|
||||
map["RunCommand"] = RunCommand;
|
||||
map[lit("Hostname")] = Hostname;
|
||||
map[lit("RunCommand")] = RunCommand;
|
||||
return map;
|
||||
}
|
||||
|
||||
void RemoteHost::CheckStatus()
|
||||
{
|
||||
// special case - this is the local context
|
||||
if(Hostname == "localhost")
|
||||
if(Hostname == lit("localhost"))
|
||||
{
|
||||
ServerRunning = false;
|
||||
VersionMismatch = Busy = false;
|
||||
|
||||
Reference in New Issue
Block a user