From 690dd7a33ddc90678367d73adf313533536e10f2 Mon Sep 17 00:00:00 2001
From: Alexey Sokolov
Date: Fri, 29 Apr 2016 23:57:30 +0100
Subject: Apply clang-format
---
src/modules/about/AboutDialog.cpp | 89 +++++++++++++++++++--------------------
1 file changed, 43 insertions(+), 46 deletions(-)
(limited to 'src/modules/about/AboutDialog.cpp')
diff --git a/src/modules/about/AboutDialog.cpp b/src/modules/about/AboutDialog.cpp
index fcf9a9a38..8c8e48239 100644
--- a/src/modules/about/AboutDialog.cpp
+++ b/src/modules/about/AboutDialog.cpp
@@ -74,14 +74,14 @@ extern AboutDialog * g_pAboutDialog;
#include "abouttext.inc"
AboutDialog::AboutDialog()
-: KviTalTabDialog(0)
+ : KviTalTabDialog(0)
{
- setWindowTitle(__tr2qs_ctx("About KVIrc","about"));
- setOkButton(__tr2qs_ctx("Close","about"));
+ setWindowTitle(__tr2qs_ctx("About KVIrc", "about"));
+ setOkButton(__tr2qs_ctx("Close", "about"));
// About tab
QString buffer;
- g_pApp->findImage(buffer,"kvi_release_art.png");
+ g_pApp->findImage(buffer, "kvi_release_art.png");
QPixmap pix(buffer);
@@ -96,17 +96,16 @@ AboutDialog::AboutDialog()
l->setAlignment(Qt::AlignCenter);
l->setPixmap(pix);
- g->addWidget(l,0,0);
+ g->addWidget(l, 0, 0);
- QString aboutString= "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "'
";
- aboutString += __tr2qs_ctx("Forged by the KVIrc Development Team","about");
+ QString aboutString = "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "'
";
+ aboutString += __tr2qs_ctx("Forged by the KVIrc Development Team", "about");
- l = new QLabel(aboutString,w);
+ l = new QLabel(aboutString, w);
l->setAlignment(Qt::AlignCenter);
- g->addWidget(l,1,0);
-
- addTab(w,__tr2qs_ctx("About","about"));
+ g->addWidget(l, 1, 0);
+ addTab(w, __tr2qs_ctx("About", "about"));
// Info tab
w = new QWidget(this);
@@ -114,14 +113,14 @@ AboutDialog::AboutDialog()
QTextEdit * v = new QTextEdit(w);
v->setReadOnly(true);
- g->addWidget(v,0,0);
+ g->addWidget(v, 0, 0);
// Get info
QString infoString = "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "'
";
infoString += "";
- infoString += __tr2qs_ctx("Runtime Info","about");
+ infoString += __tr2qs_ctx("Runtime Info", "about");
infoString += ":
";
- infoString += __tr2qs_ctx("System name","about");
+ infoString += __tr2qs_ctx("System name", "about");
infoString += ": ";
infoString += KviRuntimeInfo::name();
#ifndef COMPILE_ON_MAC
@@ -129,74 +128,73 @@ AboutDialog::AboutDialog()
infoString += KviRuntimeInfo::release();
#endif
infoString += "
";
- infoString += __tr2qs_ctx("System version","about");
+ infoString += __tr2qs_ctx("System version", "about");
infoString += ": ";
infoString += KviRuntimeInfo::version();
infoString += "
";
- infoString += __tr2qs_ctx("Architecture","about");
+ infoString += __tr2qs_ctx("Architecture", "about");
infoString += ": ";
infoString += KviRuntimeInfo::machine();
infoString += "
";
- infoString += __tr2qs_ctx("Qt version","about");
+ infoString += __tr2qs_ctx("Qt version", "about");
infoString += ": ";
infoString += KviRuntimeInfo::qtVersion();
infoString += "
";
- infoString += __tr2qs_ctx("Qt theme","about");
+ infoString += __tr2qs_ctx("Qt theme", "about");
infoString += ": ";
infoString += KviRuntimeInfo::qtTheme();
infoString += "
";
infoString += "";
- infoString += __tr2qs_ctx("Build Info","about");
+ infoString += __tr2qs_ctx("Build Info", "about");
infoString += ":
";
- infoString += __tr2qs_ctx("Build date","about");
+ infoString += __tr2qs_ctx("Build date", "about");
infoString += ": ";
infoString += KviBuildInfo::buildDate();
infoString += "
";
- infoString += __tr2qs_ctx("Sources date","about");
+ infoString += __tr2qs_ctx("Sources date", "about");
infoString += ": ";
infoString += KviBuildInfo::buildSourcesDate();
infoString += "
";
- infoString += __tr2qs_ctx("Revision number","about");
+ infoString += __tr2qs_ctx("Revision number", "about");
infoString += ": ";
infoString += KviBuildInfo::buildRevision();
infoString += "
";
- infoString += __tr2qs_ctx("System name","about");
+ infoString += __tr2qs_ctx("System name", "about");
infoString += ": ";
infoString += KviBuildInfo::buildSystem();
infoString += "
";
- infoString += __tr2qs_ctx("CPU name","about");
+ infoString += __tr2qs_ctx("CPU name", "about");
infoString += ": ";
infoString += KviBuildInfo::buildCPU();
infoString += "
";
- infoString += __tr2qs_ctx("Build command","about");
+ infoString += __tr2qs_ctx("Build command", "about");
infoString += ": ";
infoString += KviBuildInfo::buildCommand();
infoString += "
";
- infoString += __tr2qs_ctx("Build flags","about");
+ infoString += __tr2qs_ctx("Build flags", "about");
infoString += ":
";
QString flags = KviBuildInfo::buildFlags();
- infoString += flags.replace(QRegExp(";"),"
");
+ infoString += flags.replace(QRegExp(";"), "
");
infoString += "
";
- infoString += __tr2qs_ctx("Compiler name","about");
+ infoString += __tr2qs_ctx("Compiler name", "about");
infoString += ": ";
infoString += KviBuildInfo::buildCompiler();
infoString += "
";
- infoString += __tr2qs_ctx("Compiler flags","about");
+ infoString += __tr2qs_ctx("Compiler flags", "about");
infoString += ": ";
infoString += KviBuildInfo::buildCompilerFlags();
infoString += "
";
- infoString += __tr2qs_ctx("Qt version","about");
+ infoString += __tr2qs_ctx("Qt version", "about");
infoString += ": ";
infoString += KviBuildInfo::qtVersion();
infoString += "
";
- infoString += __tr2qs_ctx("Features","about");
+ infoString += __tr2qs_ctx("Features", "about");
infoString += ": ";
infoString += KviBuildInfo::features();
v->setText(infoString);
- addTab(w,__tr2qs_ctx("Executable Information","about"));
-
+ addTab(w, __tr2qs_ctx("Executable Information", "about"));
// Honor & Glory tab
w = new QWidget(this);
@@ -204,12 +202,11 @@ AboutDialog::AboutDialog()
v = new QTextEdit(w);
v->setReadOnly(true);
- g->addWidget(v,0,0);
+ g->addWidget(v, 0, 0);
v->setText(g_szAboutText);
- addTab(w,__tr2qs_ctx("Honor && Glory","about"));
-
+ addTab(w, __tr2qs_ctx("Honor && Glory", "about"));
// License tab
w = new QWidget(this);
@@ -218,26 +215,26 @@ AboutDialog::AboutDialog()
v = new QTextEdit(w);
v->setReadOnly(true);
v->setWordWrapMode(QTextOption::NoWrap);
- g->addWidget(v,0,0);
+ g->addWidget(v, 0, 0);
QString szLicense;
QString szLicensePath;
- g_pApp->getGlobalKvircDirectory(szLicensePath,KviApplication::License,"COPYING");
+ g_pApp->getGlobalKvircDirectory(szLicensePath, KviApplication::License, "COPYING");
- if(!KviFileUtils::loadFile(szLicensePath,szLicense))
+ if(!KviFileUtils::loadFile(szLicensePath, szLicense))
{
- szLicense = __tr2qs_ctx("Oops! Can't find the license file.\n" \
- "It MUST be included in the distribution...\n" \
- "Please report to ","about");
+ szLicense = __tr2qs_ctx("Oops! Can't find the license file.\n"
+ "It MUST be included in the distribution...\n"
+ "Please report to ",
+ "about");
}
v->setText(szLicense);
- addTab(w,__tr2qs_ctx("License","about"));
-
+ addTab(w, __tr2qs_ctx("License", "about"));
- connect(this,SIGNAL(applyButtonPressed()),this,SLOT(closeButtonPressed()));
+ connect(this, SIGNAL(applyButtonPressed()), this, SLOT(closeButtonPressed()));
}
AboutDialog::~AboutDialog()
@@ -245,7 +242,7 @@ AboutDialog::~AboutDialog()
g_pAboutDialog = 0;
}
-void AboutDialog::closeEvent(QCloseEvent *e)
+void AboutDialog::closeEvent(QCloseEvent * e)
{
e->ignore();
delete this;
--
cgit v1.3.1-10-gc9f91