removed namespaces

This commit is contained in:
fourtf
2018-06-26 16:37:59 +02:00
parent 15abedd869
commit 2df0566492
273 changed files with 43 additions and 826 deletions
-5
View File
@@ -10,11 +10,7 @@
#include <QShortcut>
#include <QTabWidget>
using namespace chatterino::providers::twitch;
using namespace chatterino::messages;
namespace chatterino {
namespace widgets {
EmotePopup::EmotePopup()
: BaseWindow(nullptr, BaseWindow::EnableCustomFrame)
@@ -162,5 +158,4 @@ void EmotePopup::loadEmojis()
this->viewEmojis->setChannel(emojiChannel);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -7,7 +7,6 @@
#include <pajlada/signals/signal.hpp>
namespace chatterino {
namespace widgets {
class EmotePopup : public BaseWindow
{
@@ -24,5 +23,4 @@ private:
ChannelView *viewEmojis;
};
} // namespace widgets
} // namespace chatterino
@@ -10,7 +10,6 @@
#include "util/PostToThread.hpp"
namespace chatterino {
namespace widgets {
LastRunCrashDialog::LastRunCrashDialog()
{
@@ -85,5 +84,4 @@ LastRunCrashDialog::LastRunCrashDialog()
// });
}
} // namespace widgets
} // namespace chatterino
@@ -4,7 +4,6 @@
#include <pajlada/signals/signalholder.hpp>
namespace chatterino {
namespace widgets {
class LastRunCrashDialog : public QDialog, pajlada::Signals::SignalHolder
{
@@ -12,5 +11,4 @@ public:
LastRunCrashDialog();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -13,7 +13,6 @@
#include <pajlada/settings/setting.hpp>
namespace chatterino {
namespace widgets {
namespace {
@@ -215,5 +214,4 @@ LoginWidget::LoginWidget()
this->ui.mainLayout.addWidget(&this->ui.buttonBox);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -18,7 +18,6 @@
#include <QtWidgets/QVBoxLayout>
namespace chatterino {
namespace widgets {
class BasicLoginWidget : public QWidget
{
@@ -86,5 +85,4 @@ private:
} ui;
};
} // namespace widgets
} // namespace chatterino
@@ -7,7 +7,6 @@
#include <QScreen>
namespace chatterino {
namespace widgets {
NotificationPopup::NotificationPopup()
: BaseWindow((QWidget *)nullptr, BaseWindow::Frameless)
@@ -46,5 +45,4 @@ void NotificationPopup::addMessage(messages::MessagePtr msg)
// QTimer::singleShot(5000, this, [this, msg] { this->channel->remove });
}
} // namespace widgets
} // namespace chatterino
@@ -5,7 +5,6 @@
#include "widgets/BaseWindow.hpp"
namespace chatterino {
namespace widgets {
class ChannelView;
@@ -23,5 +22,4 @@ private:
ChannelPtr channel;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -3,7 +3,6 @@
#include "util/StreamLink.hpp"
namespace chatterino {
namespace widgets {
QualityPopup::QualityPopup(const QString &_channelName, QStringList options)
: channelName(_channelName)
@@ -57,5 +56,4 @@ void QualityPopup::cancelButtonClicked()
this->close();
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -8,7 +8,6 @@
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
class QualityPopup : public BaseWindow
{
@@ -31,5 +30,4 @@ private:
void cancelButtonClicked();
};
} // namespace widgets
} // namespace chatterino
@@ -14,7 +14,6 @@
#define TAB_TWITCH 0
namespace chatterino {
namespace widgets {
SelectChannelDialog::SelectChannelDialog(QWidget *parent)
: BaseWindow(parent, BaseWindow::EnableCustomFrame)
@@ -279,5 +278,4 @@ void SelectChannelDialog::themeRefreshEvent()
}
}
} // namespace widgets
} // namespace chatterino
@@ -10,7 +10,6 @@
#include <QRadioButton>
namespace chatterino {
namespace widgets {
class SelectChannelDialog : public BaseWindow
{
@@ -57,5 +56,4 @@ private:
friend class EventFilter;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -21,7 +21,6 @@
#include <QDialogButtonBox>
namespace chatterino {
namespace widgets {
SettingsDialog *SettingsDialog::handle = nullptr;
@@ -224,5 +223,4 @@ void SettingsDialog::cancelButtonClicked()
this->close();
}
} // namespace widgets
} // namespace chatterino
-5
View File
@@ -9,12 +9,8 @@
#include <pajlada/settings/setting.hpp>
namespace chatterino {
namespace widgets {
namespace settingspages {
class SettingsPage;
} // namespace settingspages
class SettingsDialogTab;
class SettingsDialog : public BaseWindow
@@ -65,5 +61,4 @@ private:
// static void setChildrensFont(QLayout *object, QFont &font, int indent = 0);
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -2,7 +2,6 @@
#include <QSizePolicy>
namespace chatterino {
namespace widgets {
TextInputDialog::TextInputDialog(QWidget *parent)
: QDialog(parent)
@@ -42,5 +41,4 @@ void TextInputDialog::highlightText()
this->_lineEdit.selectAll();
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -8,7 +8,6 @@
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
class TextInputDialog : public QDialog
{
@@ -41,5 +40,4 @@ private slots:
void cancelButtonClicked();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -19,7 +19,6 @@
#define TEXT_CREATED "Created: "
namespace chatterino {
namespace widgets {
UserInfoPopup::UserInfoPopup()
: BaseWindow(nullptr, BaseWindow::Flags(BaseWindow::Frameless | BaseWindow::DeleteOnFocusOut |
@@ -404,5 +403,4 @@ void UserInfoPopup::TimeoutWidget::paintEvent(QPaintEvent *)
// painter.drawLine(0, this->height() / 2, this->width(), this->height() / 2);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -8,7 +8,6 @@
class QCheckBox;
namespace chatterino {
namespace widgets {
class Label;
@@ -68,5 +67,4 @@ private:
};
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -1,7 +1,6 @@
#include "WelcomeDialog.hpp"
namespace chatterino {
namespace widgets {
WelcomeDialog::WelcomeDialog()
: BaseWindow(nullptr, BaseWindow::EnableCustomFrame)
@@ -9,5 +8,4 @@ WelcomeDialog::WelcomeDialog()
this->setWindowTitle("Chatterino quick setup");
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -3,7 +3,6 @@
#include "widgets/BaseWindow.hpp"
namespace chatterino {
namespace widgets {
class WelcomeDialog : public BaseWindow
{
@@ -11,5 +10,4 @@ public:
WelcomeDialog();
};
} // namespace widgets
} // namespace chatterino