fixed notation pt. 2

This commit is contained in:
fourtf
2017-01-18 04:52:47 +01:00
parent 10e4a0f785
commit 528f539fca
22 changed files with 60 additions and 46 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
class Account class Account
{ {
public: public:
Account(QString getUsername, QString getOauthToken, QString getOauthClient); Account(QString username, QString oauthToken, QString oauthClient);
static const Account * static const Account *
getAnon() getAnon()
+3 -2
View File
@@ -1,11 +1,12 @@
#ifndef ASYNCEXEC_H #ifndef ASYNCEXEC_H
#define ASYNCEXEC_H #define ASYNCEXEC_H
#include "QRunnable"
#include "QThreadPool"
#include "lambdaqrunnable.h" #include "lambdaqrunnable.h"
#include "qcoreapplication.h" #include "qcoreapplication.h"
#include <QRunnable>
#include <QThreadPool>
#define async_exec(a) \ #define async_exec(a) \
QThreadPool::globalInstance()->start(new LambdaQRunnable(a)); QThreadPool::globalInstance()->start(new LambdaQRunnable(a));
+2 -1
View File
@@ -1,7 +1,8 @@
#include "chatwidgetinput.h" #include "chatwidgetinput.h"
#include "QPainter"
#include "colorscheme.h" #include "colorscheme.h"
#include <QPainter>
ChatWidgetInput::ChatWidgetInput() ChatWidgetInput::ChatWidgetInput()
{ {
setFixedHeight(38); setFixedHeight(38);
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef CHATWIDGETINPUT_H #ifndef CHATWIDGETINPUT_H
#define CHATWIDGETINPUT_H #define CHATWIDGETINPUT_H
#include "QPaintEvent" #include <QPaintEvent>
#include "QWidget" #include <QWidget>
class ChatWidgetInput : public QWidget class ChatWidgetInput : public QWidget
{ {
+2 -1
View File
@@ -1,7 +1,8 @@
#define LOOKUP_COLOR_COUNT 360 #define LOOKUP_COLOR_COUNT 360
#include "colorscheme.h" #include "colorscheme.h"
#include "QColor"
#include <QColor>
// hue: theme color (0 - 1) // hue: theme color (0 - 1)
// multiplyer: 1 = white, 0.8 = light, -0.8 dark, -1 black // multiplyer: 1 = white, 0.8 = light, -0.8 dark, -1 black
+3 -3
View File
@@ -1,14 +1,14 @@
#ifndef EMOJIS_H #ifndef EMOJIS_H
#define EMOJIS_H #define EMOJIS_H
#include "concurrentmap.h"
#include "lazyloadedimage.h"
#include <QObject> #include <QObject>
#include <QRegularExpression> #include <QRegularExpression>
#include <QString> #include <QString>
#include <unordered_map> #include <unordered_map>
#include "concurrentmap.h"
#include "lazyloadedimage.h"
class Emojis class Emojis
{ {
public: public:
+3 -2
View File
@@ -1,12 +1,13 @@
#ifndef EMOTES_H #ifndef EMOTES_H
#define EMOTES_H #define EMOTES_H
#include "QMap"
#include "QMutex"
#include "concurrentmap.h" #include "concurrentmap.h"
#include "lazyloadedimage.h" #include "lazyloadedimage.h"
#include "twitchemotevalue.h" #include "twitchemotevalue.h"
#include <QMap>
#include <QMutex>
class Emotes class Emotes
{ {
public: public:
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef LAMBDAQRUNNABLE_H #ifndef LAMBDAQRUNNABLE_H
#define LAMBDAQRUNNABLE_H #define LAMBDAQRUNNABLE_H
#include "QRunnable" #include <QRunnable>
#include "functional" #include <functional>
class LambdaQRunnable : public QRunnable class LambdaQRunnable : public QRunnable
{ {
+2 -1
View File
@@ -1,9 +1,10 @@
#include "mainwindow.h" #include "mainwindow.h"
#include <QPalette>
#include "chatwidget.h" #include "chatwidget.h"
#include "colorscheme.h" #include "colorscheme.h"
#include "notebook.h" #include "notebook.h"
#include <QPalette>
MainWindow::MainWindow(QWidget *parent) MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent) : QMainWindow(parent)
, notebook(this) , notebook(this)
+2 -1
View File
@@ -1,9 +1,10 @@
#ifndef MAINWINDOW_H #ifndef MAINWINDOW_H
#define MAINWINDOW_H #define MAINWINDOW_H
#include <QMainWindow>
#include "notebook.h" #include "notebook.h"
#include <QMainWindow>
class MainWindow : public QMainWindow class MainWindow : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
+5 -4
View File
@@ -1,8 +1,4 @@
#include "notebook.h" #include "notebook.h"
#include "QFormLayout"
#include "QLayout"
#include "QList"
#include "QWidget"
#include "colorscheme.h" #include "colorscheme.h"
#include "dialog.h" #include "dialog.h"
#include "notebookbutton.h" #include "notebookbutton.h"
@@ -10,6 +6,11 @@
#include "notebooktab.h" #include "notebooktab.h"
#include "settingsdialog.h" #include "settingsdialog.h"
#include <QFormLayout>
#include <QLayout>
#include <QList>
#include <QWidget>
Notebook::Notebook(QWidget *parent) Notebook::Notebook(QWidget *parent)
: QWidget(parent) : QWidget(parent)
, addButton(this) , addButton(this)
+3 -2
View File
@@ -1,12 +1,13 @@
#ifndef NOTEBOOK_H #ifndef NOTEBOOK_H
#define NOTEBOOK_H #define NOTEBOOK_H
#include <QList>
#include <QWidget>
#include "notebookbutton.h" #include "notebookbutton.h"
#include "notebookpage.h" #include "notebookpage.h"
#include "notebooktab.h" #include "notebooktab.h"
#include <QList>
#include <QWidget>
class Notebook : public QWidget class Notebook : public QWidget
{ {
Q_OBJECT Q_OBJECT
+4 -3
View File
@@ -1,9 +1,10 @@
#include "notebookbutton.h" #include "notebookbutton.h"
#include "QMouseEvent"
#include "QPainter"
#include "QPainterPath"
#include "colorscheme.h" #include "colorscheme.h"
#include <QMouseEvent>
#include <QPainter>
#include <QPainterPath>
NotebookButton::NotebookButton(QWidget *parent) NotebookButton::NotebookButton(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
+6 -5
View File
@@ -1,13 +1,14 @@
#include "notebookpage.h" #include "notebookpage.h"
#include "QHBoxLayout"
#include "QMimeData"
#include "QPainter"
#include "QVBoxLayout"
#include "QWidget"
#include "chatwidget.h" #include "chatwidget.h"
#include "colorscheme.h" #include "colorscheme.h"
#include "notebooktab.h" #include "notebooktab.h"
#include <QHBoxLayout>
#include <QMimeData>
#include <QPainter>
#include <QVBoxLayout>
#include <QWidget>
bool NotebookPage::isDraggingSplit = false; bool NotebookPage::isDraggingSplit = false;
ChatWidget *NotebookPage::draggingSplit = NULL; ChatWidget *NotebookPage::draggingSplit = NULL;
std::pair<int, int> NotebookPage::dropPosition = std::pair<int, int>(-1, -1); std::pair<int, int> NotebookPage::dropPosition = std::pair<int, int>(-1, -1);
+7 -6
View File
@@ -1,17 +1,18 @@
#ifndef NOTEBOOKPAGE_H #ifndef NOTEBOOKPAGE_H
#define NOTEBOOKPAGE_H #define NOTEBOOKPAGE_H
#include "QDragEnterEvent"
#include "QHBoxLayout"
#include "QRect"
#include "QVBoxLayout"
#include "QVector"
#include "QWidget"
#include "chatwidget.h" #include "chatwidget.h"
#include "notebookpage.h" #include "notebookpage.h"
#include "notebookpagedroppreview.h" #include "notebookpagedroppreview.h"
#include "notebooktab.h" #include "notebooktab.h"
#include <QDragEnterEvent>
#include <QHBoxLayout>
#include <QRect>
#include <QVBoxLayout>
#include <QVector>
#include <QWidget>
class NotebookPage : public QWidget class NotebookPage : public QWidget
{ {
Q_OBJECT Q_OBJECT
+2 -1
View File
@@ -1,7 +1,8 @@
#include "notebookpagedroppreview.h" #include "notebookpagedroppreview.h"
#include "QPainter"
#include "colorscheme.h" #include "colorscheme.h"
#include <QPainter>
NotebookPageDropPreview::NotebookPageDropPreview(QWidget *parent) NotebookPageDropPreview::NotebookPageDropPreview(QWidget *parent)
: QWidget(parent) : QWidget(parent)
, positionAnimation(this, "geometry") , positionAnimation(this, "geometry")
+2 -1
View File
@@ -1,5 +1,6 @@
#include "resources.h" #include "resources.h"
#include "QPixmap"
#include <QPixmap>
LazyLoadedImage *Resources::badgeStaff(NULL); LazyLoadedImage *Resources::badgeStaff(NULL);
LazyLoadedImage *Resources::badgeAdmin(NULL); LazyLoadedImage *Resources::badgeAdmin(NULL);
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef RESOURCES_H #ifndef RESOURCES_H
#define RESOURCES_H #define RESOURCES_H
#include <lazyloadedimage.h> #include "lazyloadedimage.h"
class Resources class Resources
{ {
+2 -1
View File
@@ -1,7 +1,8 @@
#include "scrollbar.h" #include "scrollbar.h"
#include "QPainter"
#include "colorscheme.h" #include "colorscheme.h"
#include <QPainter>
#define MIN_THUMB_HEIGHT 10 #define MIN_THUMB_HEIGHT 10
ScrollBar::ScrollBar(QWidget *widget) ScrollBar::ScrollBar(QWidget *widget)
+4 -3
View File
@@ -1,11 +1,12 @@
#ifndef SCROLLBAR_H #ifndef SCROLLBAR_H
#define SCROLLBAR_H #define SCROLLBAR_H
#include <functional>
#include "QMutex"
#include "QWidget"
#include "scrollbarhighlight.h" #include "scrollbarhighlight.h"
#include <QMutex>
#include <QWidget>
#include <functional>
class ScrollBar : public QWidget class ScrollBar : public QWidget
{ {
Q_OBJECT Q_OBJECT
+1 -1
View File
@@ -1,8 +1,8 @@
#ifndef SETTINGSNOTEBOOKTAB_H #ifndef SETTINGSNOTEBOOKTAB_H
#define SETTINGSNOTEBOOKTAB_H #define SETTINGSNOTEBOOKTAB_H
#include <QPaintEvent>
#include <QWidget> #include <QWidget>
#include "QPaintEvent"
class SettingsDialog; class SettingsDialog;
+1 -2
View File
@@ -5,11 +5,10 @@
#include "lazyloadedimage.h" #include "lazyloadedimage.h"
#include "link.h" #include "link.h"
#include <stdint.h>
#include <QRect> #include <QRect>
#include <QString> #include <QString>
#include <stdint.h>
class Word class Word
{ {
public: public: