summaryrefslogtreecommitdiffstats
path: root/pica-client/picaactioncenter.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/picaactioncenter.cpp
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz
pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
Diffstat (limited to 'pica-client/picaactioncenter.cpp')
-rw-r--r--pica-client/picaactioncenter.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp
index 9303ca6..81c830d 100644
--- a/pica-client/picaactioncenter.cpp
+++ b/pica-client/picaactioncenter.cpp
@@ -12,22 +12,22 @@
#include <QMessageBox>
PicaActionCenter::PicaActionCenter(QObject *parent) :
- QObject(parent)
+ QObject(parent)
{
- exitAct = new QAction(tr("E&xit"),this);
- exitAct->setStatusTip(tr("Close Pica Pica messenger and exit"));
- connect(exitAct,SIGNAL(triggered()),this,SLOT(exit()));
+ exitAct = new QAction(tr("E&xit"), this);
+ exitAct->setStatusTip(tr("Close Pica Pica messenger and exit"));
+ connect(exitAct, SIGNAL(triggered()), this, SLOT(exit()));
- aboutAct = new QAction(tr("A&bout"),this);
- aboutAct->setStatusTip(tr("About Pica Pica Messenger"));
- connect(aboutAct,SIGNAL(triggered()),this,SLOT(about()));
+ aboutAct = new QAction(tr("A&bout"), this);
+ aboutAct->setStatusTip(tr("About Pica Pica Messenger"));
+ connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
- showmyidAct = new QAction(tr("Show My Pica Pica ID"), this);
- connect(showmyidAct, SIGNAL(triggered()), this, SLOT(showmyid()));
+ showmyidAct = new QAction(tr("Show My Pica Pica ID"), this);
+ connect(showmyidAct, SIGNAL(triggered()), this, SLOT(showmyid()));
- muteSoundsAct = new QAction(tr("&Mute Sounds"), this);
- muteSoundsAct->setCheckable(true);
- connect(muteSoundsAct, SIGNAL(triggered(bool)), this, SLOT(muteSounds(bool)));
+ muteSoundsAct = new QAction(tr("&Mute Sounds"), this);
+ muteSoundsAct->setCheckable(true);
+ connect(muteSoundsAct, SIGNAL(triggered(bool)), this, SLOT(muteSounds(bool)));
settingsAct = new QAction(tr("&Configure Messenger..."), this);
connect(settingsAct, SIGNAL(triggered(bool)), this, SLOT(showsettings()));
@@ -40,24 +40,24 @@ void PicaActionCenter::about()
#else
#define VERSION_STRING ""
#endif
- QMessageBox mbx;
- mbx.setWindowIcon(picapica_ico_sit);
- mbx.setIconPixmap(picapica_ico_sit.pixmap(32));
- mbx.setTextFormat(Qt::RichText);
- mbx.setText(tr("<b>Pica Pica Messenger "VERSION_STRING"<br>(c) 2012 - 2017 Anton Sviridenko</b><br>\
+ QMessageBox mbx;
+ mbx.setWindowIcon(picapica_ico_sit);
+ mbx.setIconPixmap(picapica_ico_sit.pixmap(32));
+ mbx.setTextFormat(Qt::RichText);
+ mbx.setText(tr("<b>Pica Pica Messenger "VERSION_STRING"<br>(c) 2012 - 2017 Anton Sviridenko</b><br>\
<a href=http://picapica.im>http://picapica.im</a><br><br>Contributors:<br>Daniil Ustinov - bugfixes<br>EXL - bugfixes<br><br>\
protocol version " PICA_PROTO_VER_STRING "<br>"
- "client protocol version " PICA_PROTO_CLIENT_VER_STRING));
- mbx.exec();
+ "client protocol version " PICA_PROTO_CLIENT_VER_STRING));
+ mbx.exec();
}
void PicaActionCenter::exit()
{
- if (mainwindow)
- mainwindow->close();
+ if (mainwindow)
+ mainwindow->close();
- skynet->Exit();
- QApplication::instance()->quit();
+ skynet->Exit();
+ QApplication::instance()->quit();
}
void PicaActionCenter::showsettings()
@@ -68,11 +68,11 @@ void PicaActionCenter::showsettings()
void PicaActionCenter::showmyid()
{
- ShowPicaIdDialog d(Accounts::GetCurrentAccount().name, Accounts::GetCurrentAccount().id, tr("My Current Account"));
- d.exec();
+ ShowPicaIdDialog d(Accounts::GetCurrentAccount().name, Accounts::GetCurrentAccount().id, tr("My Current Account"));
+ d.exec();
}
void PicaActionCenter::muteSounds(bool yes)
{
- Sound::mute(yes);
+ Sound::mute(yes);
}