Run astyle-kdelibs on the source
This commit is contained in:
parent
4b85d63d68
commit
39aac8c95b
22 changed files with 1227 additions and 1264 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue