aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/about_dialog.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-23 13:18:30 +0100
committerAnders Broman <a.broman58@gmail.com>2016-01-23 23:15:54 +0000
commit720f57d0009fd3941d327d30dc064adbc5feb5a0 (patch)
treeaa7cd0b0517ca1420865d8b4f5baba0562866286 /ui/qt/about_dialog.cpp
parentdd4638948510babe0f64616dbdab0da58a6b559c (diff)
ui: Code cleanup
Fixed code layout to use common style in the file. Mostly whitespace changes. Change-Id: Id37b57717a9e26248fad07322dff09b1d1f45ac2 Reviewed-on: https://code.wireshark.org/review/13504 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/about_dialog.cpp')
-rw-r--r--ui/qt/about_dialog.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp
index 84cbcee10f..19510ce16c 100644
--- a/ui/qt/about_dialog.cpp
+++ b/ui/qt/about_dialog.cpp
@@ -86,7 +86,7 @@ const QString AboutDialog::about_folders_row(const char *name, const QString dir
static void plugins_add_description(const char *name, const char *version,
const char *types, const char *filename,
- void *user_data )
+ void *user_data)
{
QList<QStringList> *plugin_data = (QList<QStringList> *)user_data;
QStringList plugin_row = QStringList() << name << version << types << filename;
@@ -120,15 +120,12 @@ const QString AboutDialog::plugins_scan()
}
GHashTable * tools = extcap_tools_list();
- if ( tools != NULL && g_hash_table_size(tools) > 0 )
- {
+ if (tools && g_hash_table_size(tools) > 0) {
QString short_file;
GList * walker = g_list_first(g_hash_table_get_keys(tools));
- while ( walker )
- {
+ while (walker) {
extcap_info * tool = (extcap_info *)g_hash_table_lookup(tools, walker->data);
- if ( tool != NULL )
- {
+ if (tool) {
short_file = fontMetrics().elidedText(tool->full_path, Qt::ElideMiddle, one_em*22);
plugin_table += QString("<tr><td>%1</td><td>%2</td><td>%3</td><td>%4</td></tr>\n")
.arg(tool->basename) // Name
@@ -184,7 +181,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
/* Check if it is a dev release... (VERSION_MINOR is odd in dev release) */
#if VERSION_MINOR & 1
- ui->label_logo->setPixmap( QPixmap( ":/about/wssplash_dev.png" ) );
+ ui->label_logo->setPixmap(QPixmap(":/about/wssplash_dev.png"));
#endif