Run astyle-kdelibs on the source

This commit is contained in:
Luca Beltrame 2014-10-05 09:53:19 +02:00
commit 39aac8c95b
22 changed files with 1227 additions and 1264 deletions

View file

@ -30,49 +30,47 @@
#include <KLocale>
namespace Danbooru {
namespace Danbooru
{
DanbooruMainWindow::DanbooruMainWindow()
: KXmlGuiWindow(),
m_view(new DanbooruClientView(this)),
m_service(0),
m_model(new(DanbooruPostModel(this)))
{
// tell the KXmlGuiWindow that this is indeed the main widget
setCentralWidget(m_view);
DanbooruMainWindow::DanbooruMainWindow()
: KXmlGuiWindow(),
m_view(new DanbooruClientView(this)),
m_service(0),
m_model(new(DanbooruPostModel(this)))
{
// tell the KXmlGuiWindow that this is indeed the main widget
setCentralWidget(m_view);
// then, setup our actions
setupActions();
// then, setup our actions
setupActions();
// add a status bar
statusBar()->show();
// add a status bar
statusBar()->show();
// a call to KXmlGuiWindow::setupGUI() populates the GUI
// with actions, using KXMLGUI.
// It also applies the saved mainwindow settings, if any, and ask the
// mainwindow to automatically save settings if changed: window size,
// toolbar position, icon size, etc.
setupGUI();
// a call to KXmlGuiWindow::setupGUI() populates the GUI
// with actions, using KXMLGUI.
// It also applies the saved mainwindow settings, if any, and ask the
// mainwindow to automatically save settings if changed: window size,
// toolbar position, icon size, etc.
setupGUI();
}
}
DanbooruMainWindow::~DanbooruMainWindow()
{
}
DanbooruMainWindow::~DanbooruMainWindow()
{
}
void DanbooruMainWindow::setupActions()
{
void DanbooruMainWindow::setupActions()
{
QAction * connectAction = new QAction(
QAction *connectAction = new QAction(
QIcon::fromTheme(QLatin1String("document-open-remote")),
i18n("Connect..."),
this);
QAction * fetchAction = new QAction(QIcon::fromTheme(QLatin1String("download")),
i18n("Download"), this);
QAction *fetchAction = new QAction(QIcon::fromTheme(QLatin1String("download")),
i18n("Download"), this);
connectAction->setShortcut(KStandardShortcut::open());
fetchAction->setShortcut(KStandardShortcut::find());
@ -86,29 +84,28 @@ namespace Danbooru {
connect(connectAction, &QAction::triggered, this, &DanbooruMainWindow::connectToBoard);
connect(fetch, SIGNAL(triggered(bool)), this, SLOT(downloadPosts()));
}
void DanbooruMainWindow::connectToBoard()
{
if (!m_view) {
return;
}
void DanbooruMainWindow::connectToBoard()
{
if (!m_view) {
return;
}
}
void DanbooruMainWindow::downloadPosts()
{
if (!m_service) {
return;
}
}
void DanbooruMainWindow::downloadPosts()
{
if (!m_service) {
return;
}
}
void DanbooruMainWindow::optionsPreferences()
{
}
void DanbooruMainWindow::optionsPreferences()
{
}
} // namespace Danbooru