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
-2
View File
@@ -9,7 +9,6 @@
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
AccountSwitchPopupWidget::AccountSwitchPopupWidget(QWidget *parent)
: QWidget(parent)
@@ -58,5 +57,4 @@ void AccountSwitchPopupWidget::paintEvent(QPaintEvent *)
painter.drawRect(0, 0, this->width() - 1, this->height() - 1);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -5,7 +5,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class AccountSwitchPopupWidget : public QWidget
{
@@ -26,5 +25,4 @@ private:
} ui;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -5,7 +5,6 @@
#include "controllers/accounts/AccountController.hpp"
namespace chatterino {
namespace widgets {
AccountSwitchWidget::AccountSwitchWidget(QWidget *parent)
: QListWidget(parent)
@@ -81,5 +80,4 @@ void AccountSwitchWidget::refreshSelection()
this->blockSignals(false);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -3,7 +3,6 @@
#include <QListWidget>
namespace chatterino {
namespace widgets {
class AccountSwitchWidget : public QListWidget
{
@@ -18,5 +17,4 @@ private:
void refreshSelection();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -17,7 +17,6 @@
#endif
namespace chatterino {
namespace widgets {
AttachedWindow::AttachedWindow(void *_target, int _yOffset)
: QWidget(nullptr, Qt::FramelessWindowHint | Qt::Window)
@@ -214,5 +213,4 @@ void AttachedWindow::updateWindowRect_(void *_attachedPtr)
std::vector<AttachedWindow::Item> AttachedWindow::items;
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include "widgets/splits/Split.hpp"
namespace chatterino {
namespace widgets {
class AttachedWindow : public QWidget
{
@@ -58,5 +57,4 @@ private:
static std::vector<Item> items;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -13,7 +13,6 @@
#include <QtGlobal>
namespace chatterino {
namespace widgets {
BaseWidget::BaseWidget(QWidget *parent, Qt::WindowFlags f)
: QWidget(parent, f)
@@ -150,5 +149,4 @@ void BaseWidget::themeRefreshEvent()
// Do any color scheme updates here
}
} // namespace widgets
} // namespace chatterino
+1 -6
View File
@@ -5,12 +5,8 @@
#include <pajlada/signals/signal.hpp>
namespace chatterino {
namespace singletons {
class ThemeManager;
} // namespace singletons
namespace widgets {
class BaseWindow;
class BaseWidget : public QWidget
@@ -60,5 +56,4 @@ private:
friend class BaseWindow;
};
} // namespace widgets
} // namespace chatterino
-3
View File
@@ -39,7 +39,6 @@
#include "widgets/helper/TitlebarButton.hpp"
namespace chatterino {
namespace widgets {
BaseWindow::BaseWindow(QWidget *parent, Flags _flags)
: BaseWidget(parent,
@@ -172,7 +171,6 @@ void BaseWindow::init()
// this->setWindowFlag(Qt::WindowStaysOnTopHint);
// }
#endif
} // namespace widgets
void BaseWindow::setStayInScreenRect(bool value)
{
@@ -686,5 +684,4 @@ void BaseWindow::calcButtonsSizes()
}
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -9,7 +9,6 @@
class QHBoxLayout;
namespace chatterino {
namespace widgets {
class RippleEffectButton;
class RippleEffectLabel;
@@ -97,5 +96,4 @@ private:
pajlada::Signals::SignalHolder connections_;
};
} // namespace widgets
} // namespace chatterino
-3
View File
@@ -6,8 +6,6 @@
namespace chatterino {
namespace widgets {
Label::Label(QString text, FontStyle style)
: Label(nullptr, text, style)
{
@@ -134,5 +132,4 @@ int Label::getOffset()
return this->hasOffset_ ? int(8 * this->getScale()) : 0;
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include <pajlada/signals/signalholder.hpp>
namespace chatterino {
namespace widgets {
class Label : public BaseWidget
{
@@ -47,5 +46,4 @@ private:
int getOffset();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -23,7 +23,6 @@
#include <boost/foreach.hpp>
namespace chatterino {
namespace widgets {
Notebook::Notebook(QWidget *parent)
: BaseWidget(parent)
@@ -467,5 +466,4 @@ SplitContainer *SplitNotebook::getOrAddSelectedPage()
return selectedPage != nullptr ? (SplitContainer *)selectedPage : this->addPage();
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -11,7 +11,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class Window;
@@ -93,5 +92,4 @@ private:
std::vector<pajlada::Signals::ScopedConnection> uniqueConnections;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -14,7 +14,6 @@
#define MIN_THUMB_HEIGHT 10
namespace chatterino {
namespace widgets {
Scrollbar::Scrollbar(ChannelView *parent)
: BaseWidget(parent)
@@ -382,5 +381,4 @@ void Scrollbar::updateScroll()
this->update();
}
} // namespace widgets
} // namespace chatterino
-3
View File
@@ -12,8 +12,6 @@
namespace chatterino {
namespace widgets {
class ChannelView;
class Scrollbar : public BaseWidget
@@ -100,5 +98,4 @@ private:
void updateScroll();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -10,7 +10,6 @@
#endif
namespace chatterino {
namespace widgets {
StreamView::StreamView(ChannelPtr channel, const QUrl &url)
{
@@ -30,5 +29,4 @@ StreamView::StreamView(ChannelPtr channel, const QUrl &url)
this->layout()->setMargin(0);
}
} // namespace widgets
} // namespace chatterino
-3
View File
@@ -11,8 +11,6 @@ namespace chatterino {
class Channel;
namespace widgets {
class StreamView : public QWidget
{
public:
@@ -24,5 +22,4 @@ private:
#endif
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -14,7 +14,6 @@
#endif
namespace chatterino {
namespace widgets {
TooltipWidget *TooltipWidget::getInstance()
{
@@ -96,5 +95,4 @@ void TooltipWidget::leaveEvent(QEvent *)
// clear parents event
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -7,7 +7,6 @@
#include <pajlada/signals/signal.hpp>
namespace chatterino {
namespace widgets {
class TooltipWidget : public BaseWindow
{
@@ -38,5 +37,4 @@ private:
void updateFont();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -25,7 +25,6 @@
#include <QStandardItemModel>
namespace chatterino {
namespace widgets {
Window::Window(WindowType _type)
: BaseWindow(nullptr, BaseWindow::EnableCustomFrame)
@@ -282,5 +281,4 @@ void Window::closeEvent(QCloseEvent *)
}
}
} // namespace widgets
} // namespace chatterino
+1 -5
View File
@@ -12,11 +12,8 @@
#include <pajlada/signals/signal.hpp>
namespace chatterino {
namespace singletons {
class ThemeManager;
} // namespace singletons
namespace widgets {
class ThemeManager;
class Window : public BaseWindow
{
@@ -58,5 +55,4 @@ public:
void save();
};
} // namespace widgets
} // namespace chatterino
-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
-5
View File
@@ -31,11 +31,7 @@
#define SELECTION_RESUME_SCROLLING_MSG_THRESHOLD 3
#define CHAT_HOVER_PAUSE_DURATION 1000
using namespace chatterino::messages;
using namespace chatterino::providers::twitch;
namespace chatterino {
namespace widgets {
ChannelView::ChannelView(BaseWidget *parent)
: BaseWidget(parent)
@@ -1211,5 +1207,4 @@ int ChannelView::getLayoutWidth() const
return this->width();
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -20,7 +20,6 @@
#include <unordered_set>
namespace chatterino {
namespace widgets {
class ChannelView : public BaseWidget
{
@@ -160,5 +159,4 @@ private slots:
}
};
} // namespace widgets
} // namespace chatterino
@@ -3,7 +3,6 @@
#include <QComboBox>
namespace chatterino {
namespace widgets {
ComboBoxItemDelegate::ComboBoxItemDelegate(QObject *parent)
: QStyledItemDelegate(parent)
@@ -53,5 +52,4 @@ void ComboBoxItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *mod
else
QStyledItemDelegate::setModelData(editor, model, index);
}
} // namespace widgets
} // namespace chatterino
@@ -3,7 +3,6 @@
#include <QStyledItemDelegate>
namespace chatterino {
namespace widgets {
// stolen from https://wiki.qt.io/Combo_Boxes_in_Item_Views
@@ -22,5 +21,4 @@ public:
const QModelIndex &index) const;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -8,7 +8,6 @@
#include <QTimer>
namespace chatterino {
namespace widgets {
DebugPopup::DebugPopup()
{
@@ -26,5 +25,4 @@ DebugPopup::DebugPopup()
layout->addWidget(text);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -3,7 +3,6 @@
#include <QWindow>
namespace chatterino {
namespace widgets {
class DebugPopup : public QWidget
{
@@ -11,5 +10,4 @@ public:
DebugPopup();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include <QPainter>
namespace chatterino {
namespace widgets {
NotebookPageDropPreview::NotebookPageDropPreview(BaseWidget *parent)
: BaseWidget(parent)
@@ -51,5 +50,4 @@ void NotebookPageDropPreview::setBounds(const QRect &rect)
// this->animate = true;
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class NotebookPageDropPreview : public BaseWidget
{
@@ -24,5 +23,4 @@ protected:
// bool animate = false;
};
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -8,8 +8,6 @@
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
namespace helper {
EditableModelView::EditableModelView(QAbstractTableModel *_model)
: tableView(new QTableView(this))
@@ -71,6 +69,4 @@ QAbstractTableModel *EditableModelView::getModel()
return this->model;
}
} // namespace helper
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -8,8 +8,6 @@ class QAbstractTableModel;
class QTableView;
namespace chatterino {
namespace widgets {
namespace helper {
class EditableModelView : public QWidget
{
@@ -28,6 +26,4 @@ private:
QAbstractTableModel *model;
};
} // namespace helper
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -5,7 +5,6 @@
#include <QPainter>
namespace chatterino {
namespace widgets {
class Line : public BaseWidget
{
@@ -38,5 +37,4 @@ private:
bool vertical_;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -12,7 +12,6 @@
#define nuuls nullptr
namespace chatterino {
namespace widgets {
NotebookButton::NotebookButton(BaseWidget *parent)
: RippleEffectButton(parent)
@@ -158,5 +157,4 @@ void NotebookButton::dropEvent(QDropEvent *event)
}
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -5,7 +5,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class NotebookButton : public RippleEffectButton
{
@@ -35,5 +34,4 @@ private:
QPoint mousePos_;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -19,7 +19,6 @@
#include <boost/bind.hpp>
namespace chatterino {
namespace widgets {
NotebookTab::NotebookTab(Notebook *notebook)
: RippleEffectButton(notebook)
@@ -454,5 +453,4 @@ QRect NotebookTab::getXRect()
static_cast<int>(16 * s), static_cast<int>(16 * s));
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -10,7 +10,6 @@
#include <pajlada/signals/connection.hpp>
namespace chatterino {
namespace widgets {
#define NOTEBOOK_TAB_HEIGHT 28
@@ -90,5 +89,4 @@ private:
void titleUpdated();
};
} // namespace widgets
} // namespace chatterino
+4
View File
@@ -2,6 +2,8 @@
#include "common/Common.hpp"
#include "common/CompletionModel.hpp"
namespace chatterino {
ResizingTextEdit::ResizingTextEdit()
{
auto sizePolicy = this->sizePolicy();
@@ -200,3 +202,5 @@ QCompleter *ResizingTextEdit::getCompleter() const
{
return this->completer;
}
}
+4
View File
@@ -5,6 +5,8 @@
#include <QTextEdit>
#include <pajlada/signals/signal.hpp>
namespace chatterino {
class ResizingTextEdit : public QTextEdit
{
public:
@@ -38,3 +40,5 @@ private:
private slots:
void insertCompletion(const QString &completion);
};
}
@@ -6,7 +6,6 @@
#include "singletons/ThemeManager.hpp"
namespace chatterino {
namespace widgets {
RippleEffectButton::RippleEffectButton(BaseWidget *parent)
: BaseWidget(parent)
@@ -191,5 +190,4 @@ void RippleEffectButton::onMouseEffectTimeout()
}
}
} // namespace widgets
} // namespace chatterino
@@ -11,7 +11,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class RippleEffectButton : public BaseWidget
{
@@ -66,5 +65,4 @@ private:
void onMouseEffectTimeout();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include <QPainter>
namespace chatterino {
namespace widgets {
RippleEffectLabel::RippleEffectLabel(BaseWidget *parent, int spacing)
: RippleEffectButton(parent)
@@ -43,5 +42,4 @@ Label &RippleEffectLabel2::getLabel()
return this->label_;
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -11,7 +11,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
class RippleEffectLabel : public RippleEffectButton
{
@@ -39,5 +38,4 @@ private:
Label label_;
};
} // namespace widgets
} // namespace chatterino
@@ -3,7 +3,6 @@
#include "widgets/Scrollbar.hpp"
namespace chatterino {
namespace widgets {
ScrollbarHighlight::ScrollbarHighlight()
: color(Color::Highlight)
@@ -32,5 +31,4 @@ bool ScrollbarHighlight::isNull() const
return this->style == None;
}
} // namespace widgets
} // namespace chatterino
@@ -3,7 +3,6 @@
#include <QString>
namespace chatterino {
namespace widgets {
class ScrollbarHighlight
{
@@ -23,5 +22,4 @@ private:
Style style;
};
} // namespace widgets
} // namespace chatterino
+2 -2
View File
@@ -8,7 +8,7 @@
#include "widgets/helper/ChannelView.hpp"
namespace chatterino {
namespace widgets {
SearchPopup::SearchPopup()
{
this->initLayout();
@@ -83,5 +83,5 @@ void SearchPopup::performSearch()
this->channelView->setChannel(channel);
}
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -11,9 +11,6 @@ class QLineEdit;
namespace chatterino {
class Channel;
namespace widgets {
class ChannelView;
class SearchPopup : public BaseWindow
@@ -32,5 +29,4 @@ private:
void performSearch();
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -6,7 +6,6 @@
#include <QStyleOption>
namespace chatterino {
namespace widgets {
SettingsDialogTab::SettingsDialogTab(SettingsDialog *_dialog, settingspages::SettingsPage *_page,
QString imageFileName)
@@ -68,5 +67,4 @@ void SettingsDialogTab::mousePressEvent(QMouseEvent *event)
this->dialog->select(this);
}
} // namespace widgets
} // namespace chatterino
+1 -5
View File
@@ -7,11 +7,8 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
namespace settingspages {
class SettingsPage;
} // namespace settingspages
class SettingsPage;
class SettingsDialog;
class SettingsDialogTab : public BaseWidget
@@ -44,5 +41,4 @@ private:
bool selected = false;
};
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -4,7 +4,6 @@
#include <QWidget>
namespace chatterino {
namespace widgets {
template <typename WidgetType, typename Func>
inline void CreateShortcut(WidgetType *w, const char *key, Func func)
@@ -22,5 +21,4 @@ inline void CreateWindowShortcut(WidgetType *w, const char *key, Func func)
QObject::connect(s, &QShortcut::activated, w, func);
}
} // namespace widgets
} // namespace chatterino
+4
View File
@@ -1,5 +1,7 @@
#include "widgets/helper/SignalLabel.hpp"
namespace chatterino {
SignalLabel::SignalLabel(QWidget *parent, Qt::WindowFlags f)
: QLabel(parent, f)
{
@@ -33,3 +35,5 @@ void SignalLabel::mouseMoveEvent(QMouseEvent *event)
emit this->mouseMove(event);
event->ignore();
}
}
+4
View File
@@ -5,6 +5,8 @@
#include <QMouseEvent>
#include <QWidget>
namespace chatterino {
class SignalLabel : public QLabel
{
Q_OBJECT
@@ -26,3 +28,5 @@ protected:
void mouseReleaseEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
};
}
-2
View File
@@ -3,7 +3,6 @@
#include "singletons/ThemeManager.hpp"
namespace chatterino {
namespace widgets {
TitleBarButton::TitleBarButton()
: RippleEffectButton(nullptr)
@@ -119,5 +118,4 @@ void TitleBarButton::paintEvent(QPaintEvent *)
this->fancyPaint(painter);
}
} // namespace widgets
} // namespace chatterino
-2
View File
@@ -3,7 +3,6 @@
#include "widgets/helper/RippleEffectButton.hpp"
namespace chatterino {
namespace widgets {
class TitleBarButton : public RippleEffectButton
{
@@ -22,5 +21,4 @@ private:
Style style;
};
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -13,8 +13,6 @@
#define PIXMAP_WIDTH 500
namespace chatterino {
namespace widgets {
namespace settingspages {
AboutPage::AboutPage()
: SettingsPage("About", ":/images/about.svg")
@@ -132,6 +130,4 @@ void AboutPage::addLicense(QFormLayout *form, const QString &name, const QString
form->addRow(a, b);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -6,8 +6,6 @@ class QLabel;
class QFormLayout;
namespace chatterino {
namespace widgets {
namespace settingspages {
class AboutPage : public SettingsPage
{
@@ -21,6 +19,4 @@ private:
const QString &licenseLink);
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -15,8 +15,6 @@
#include <algorithm>
namespace chatterino {
namespace widgets {
namespace settingspages {
AccountsPage::AccountsPage()
: SettingsPage("Accounts", ":/images/accounts.svg")
@@ -66,6 +64,4 @@ AccountsPage::AccountsPage()
// });
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -6,8 +6,6 @@
#include <QPushButton>
namespace chatterino {
namespace widgets {
namespace settingspages {
class AccountsPage : public SettingsPage
{
@@ -20,6 +18,4 @@ private:
AccountSwitchWidget *accSwitchWidget;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -30,8 +30,6 @@
// clang-format on
namespace chatterino {
namespace widgets {
namespace settingspages {
AppearancePage::AppearancePage()
: SettingsPage("Look", ":/images/theme.svg")
@@ -271,6 +269,4 @@ QLayout *AppearancePage::createUiScaleSlider()
return layout;
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -6,8 +6,6 @@
#include <pajlada/signals/signalholder.hpp>
namespace chatterino {
namespace widgets {
namespace settingspages {
class AppearancePage : public SettingsPage
{
@@ -21,6 +19,4 @@ public:
std::vector<pajlada::Signals::ScopedConnection> connections_;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -19,8 +19,6 @@
#define LIMIT_CHATTERS_FOR_SMALLER_STREAMERS "Only fetch chatters list for viewers under X viewers"
namespace chatterino {
namespace widgets {
namespace settingspages {
BehaviourPage::BehaviourPage()
: SettingsPage("Feel", ":/images/behave.svg")
@@ -90,6 +88,4 @@ QSlider *BehaviourPage::createMouseScrollSlider()
return slider;
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -5,8 +5,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class BehaviourPage : public SettingsPage
{
@@ -17,6 +15,4 @@ private:
QSlider *createMouseScrollSlider();
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -11,8 +11,6 @@
"https://addons.mozilla.org/en-US/firefox/addon/chatterino-native-host/"
namespace chatterino {
namespace widgets {
namespace settingspages {
BrowserExtensionPage::BrowserExtensionPage()
: SettingsPage("Browser Extension", "")
@@ -33,6 +31,4 @@ BrowserExtensionPage::BrowserExtensionPage()
layout->addStretch(1);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -3,8 +3,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class BrowserExtensionPage : public SettingsPage
{
@@ -12,6 +10,4 @@ public:
BrowserExtensionPage();
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -25,8 +25,6 @@
// clang-format on
namespace chatterino {
namespace widgets {
namespace settingspages {
CommandPage::CommandPage()
: SettingsPage("Commands", ":/images/commands.svg")
@@ -57,6 +55,4 @@ CommandPage::CommandPage()
this->commandsEditTimer.setSingleShot(true);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -6,8 +6,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class CommandPage : public SettingsPage
{
@@ -18,6 +16,4 @@ private:
QTimer commandsEditTimer;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -3,8 +3,6 @@
#include "util/LayoutCreator.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
EmotesPage::EmotesPage()
: SettingsPage("Emotes", ":/images/emote.svg")
@@ -25,6 +23,4 @@ EmotesPage::EmotesPage()
// layout->addStretch(1);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
-4
View File
@@ -3,8 +3,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class EmotesPage : public SettingsPage
{
@@ -12,6 +10,4 @@ public:
EmotesPage();
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -8,8 +8,6 @@
#define STREAMLINK_QUALITY "Choose", "Source", "High", "Medium", "Low", "Audio only"
namespace chatterino {
namespace widgets {
namespace settingspages {
namespace {
@@ -74,6 +72,4 @@ ExternalToolsPage::ExternalToolsPage()
layout->addStretch(1);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -3,8 +3,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class ExternalToolsPage : public SettingsPage
{
@@ -12,6 +10,4 @@ public:
ExternalToolsPage();
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -25,8 +25,6 @@
#define ALWAYS_PLAY "Always play highlight sound (Even if Chatterino is focused)"
namespace chatterino {
namespace widgets {
namespace settingspages {
HighlightingPage::HighlightingPage()
: SettingsPage("Highlights", ":/images/notifications.svg")
@@ -106,6 +104,4 @@ HighlightingPage::HighlightingPage()
this->disabledUsersChangedTimer.setSingleShot(true);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -9,8 +9,6 @@ class QPushButton;
class QListWidget;
namespace chatterino {
namespace widgets {
namespace settingspages {
class HighlightingPage : public SettingsPage
{
@@ -21,6 +19,4 @@ private:
QTimer disabledUsersChangedTimer;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -22,8 +22,6 @@
// clang-format on
namespace chatterino {
namespace widgets {
namespace settingspages {
IgnoreUsersPage::IgnoreUsersPage()
: SettingsPage("Ignores", "")
@@ -106,6 +104,4 @@ void IgnoreUsersPage::onShow()
this->userListModel.setStringList(users);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -5,8 +5,6 @@
#include <QStringListModel>
namespace chatterino {
namespace widgets {
namespace settingspages {
class IgnoreUsersPage : public SettingsPage
{
@@ -19,6 +17,4 @@ private:
QStringListModel userListModel;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -6,8 +6,6 @@
#include <QLabel>
namespace chatterino {
namespace widgets {
namespace settingspages {
KeyboardSettingsPage::KeyboardSettingsPage()
: SettingsPage("Keybindings", "")
@@ -39,6 +37,4 @@ KeyboardSettingsPage::KeyboardSettingsPage()
form->addRow(new QLabel("Ctrl + F"), new QLabel("Search in current channel"));
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -3,8 +3,6 @@
#include "widgets/settingspages/SettingsPage.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class KeyboardSettingsPage : public SettingsPage
{
@@ -12,6 +10,4 @@ public:
KeyboardSettingsPage();
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -20,8 +20,6 @@
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
namespace settingspages {
inline QString CreateLink(const QString &url, bool file = false)
{
@@ -138,6 +136,4 @@ ModerationPage::ModerationPage()
this->itemsChangedTimer.setSingleShot(true);
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -7,8 +7,6 @@
class QPushButton;
namespace chatterino {
namespace widgets {
namespace settingspages {
class ModerationPage : public SettingsPage
{
@@ -19,6 +17,4 @@ private:
QTimer itemsChangedTimer;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -3,8 +3,6 @@
#include <QDebug>
namespace chatterino {
namespace widgets {
namespace settingspages {
SettingsPage::SettingsPage(const QString &_name, const QString &_iconResource)
: name(_name)
@@ -93,6 +91,4 @@ QSpinBox *SettingsPage::createSpinBox(pajlada::Settings::Setting<int> &setting,
return w;
}
} // namespace settingspages
} // namespace widgets
} // namespace chatterino
@@ -9,8 +9,6 @@
#include "singletons/SettingsManager.hpp"
namespace chatterino {
namespace widgets {
namespace settingspages {
class SettingsPage : public QWidget
{
@@ -40,6 +38,4 @@ protected:
std::vector<pajlada::Signals::ScopedConnection> managedConnections;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino

Some files were not shown because too many files have changed in this diff Show More