Commit graph

3347 commits

Author SHA1 Message Date
pajlada 784fdd28b2
Check for ignored phrases/users in channel point redemptions (#3102) 2021-08-01 13:44:04 +00:00
Mm2PL 77f683577f
Use double spaces instead of Chatterino character when possible (#3081) 2021-08-01 12:38:07 +00:00
Mm2PL d7e8f4eabd
Add channel.live filter variable (#3092)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-08-01 12:08:03 +00:00
zneix a51d995f43
Fixes to QtConcurrent::run()
We now use `QFuture::result()` to get the underlying type in
QtConcurrent::run() now returns `QFuture<T>` instead of just the underlying type T
To get the underlying type from QFuture, we need to use .result()
NOTE: No idea if .results() wouldn't be better in some cases, gotta investigate this.

Reference:
- https://doc.qt.io/qt-5/qfuture.html#result
- https://doc.qt.io/qt-6/concurrent-changes-qt6.html#qtconcurrent-run
2021-07-31 23:04:25 +02:00
zneix adfef8146e
Follow-up to text encoding-related changes from 1330076
Reference:
- https://doc.qt.io/qt-6/qtextstream.html#setEncoding
2021-07-31 22:59:59 +02:00
zneix e2f59d2e61
Use QApplication::screens().first() instead of deprecated methods
Also follows-up moving away from QDesktop widget from c99f12e8fe
Note: `QScreen::availableGeometry()` doesn't take the parent argument as opposed to `QDesktopWidget::availableGeometry(QWidget &xd)` - no idea if not passing an argument breaks anything, but just for the sake of having Chatterino compile I didn't mind it that much while fixing compilation.

Reference:
- https://doc.qt.io/qt-6/widgets-changes-qt6.html#qdesktopwidget-and-qapplication-desktop
2021-07-31 22:51:34 +02:00
zneix d6450a8f78
Specify QPoint in QWidget::mapToGlobal(QPoint &pos)
There's now both QPoint and QPointF overloads

Reference:
- https://doc.qt.io/qt-6/qwidget.html#mapToGlobal
2021-07-31 22:47:00 +02:00
zneix 2a8daaea05
Include QFile that is now necessary I think 2021-07-31 22:46:26 +02:00
zneix bddd5b021c
QStyleOption::init() -> QStyleOption::initFrom()
Reference:
- https://doc.qt.io/qt-5/qstyleoption-obsolete.html#init
2021-07-31 22:41:15 +02:00
zneix 0839e36177
Follow-up to 52ef16418d 2021-07-31 22:40:29 +02:00
zneix 850869bb0f
Follow-up to 4ba4a2f33c 2021-07-31 22:34:47 +02:00
zneix e7b89e61e8
Move QAction to QtGui on Qt6
Reference:
- https://doc.qt.io/qt-6/widgets-changes-qt6.html#qaction-qactiongroup
2021-07-31 22:32:47 +02:00
zneix fa31c57dc9
Replaced QLayout::setMargin with QLayout::setContentsMargins
It's been already deprecated in Qt5, removed from Qt6 completely

Reference:
- https://doc.qt.io/qt-5/qlayout-obsolete.html
2021-07-31 19:45:17 +02:00
zneix c99f12e8fe
Removed unused QDesktopWidget includes
Also made the overlooked deprecation fixes (which is now a necessary fix because deprecation warning became a compilation error now), Extends #2647
2021-07-31 18:50:35 +02:00
zneix 0ea7db094e
Follow-up to 52ef16418d 2021-07-31 18:13:38 +02:00
zneix a0228fbd6d
Merge remote-tracking branch 'origin/master' into zneix/feature/qt6 2021-07-31 17:34:13 +02:00
apa420 3cb1e5158a
Added the ability to add nicknames for users (#2981)
Co-authored-by: Mm2PL <mm2pl+gh@kotmisia.pl>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-07-31 16:15:43 +02:00
ALazyMeme 3238d1f801
Add ALazyMeme to the contributor list (#3097)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-31 13:24:56 +00:00
xHeaveny 0f0b0c03b8
Adding xHeaveny to Contributor List (#3072) 2021-07-31 12:47:56 +00:00
Niko bbe7849240
Fixes some basic grammatical mistakes (#3053) 2021-07-31 13:03:07 +02:00
zneix 6c6edc10bb
QLatin1Literal no longer exists (?)
QStringLiteral seems like a fine workaround
2021-07-31 12:43:04 +02:00
zneix 4958a13240
QMediaPlayer::setMedia -> QMediaPlayer::setSource
References:
- https://doc.qt.io/qt-5/qmediaplayer.html#setMedia
- https://doc-snapshots.qt.io/qt6-dev/qmediaplayer.html#setSource
2021-07-31 12:27:27 +02:00
zneix 4ba4a2f33c
Follow-up to 32f81a668f
Also, rather use `static_cast<int>(stuff)` than `int(stuff)`.
See https://cdn.zneix.eu/JjHk5U4.png
2021-07-31 02:28:00 +02:00
zneix 52ef16418d
More QStringRef -> QStringView
Follow-up to stuff that was originally added in 1330076d5d
2021-07-31 02:17:54 +02:00
zneix 32f81a668f
QList::{size,length}() changed fron inline int to qsizetype
References:
- https://doc.qt.io/qt-6/qlist.html#length
- https://www.qt.io/blog/qlist-changes-in-qt-6
2021-07-31 02:00:20 +02:00
zneix 19a2b2eb61
You can no longer just append int to a QString 2021-07-31 01:59:57 +02:00
zneix efc376138a
Replace QPixmap == comparison with QImage ==
Reference:
- b39685d4c2
2021-07-31 01:41:21 +02:00
zneix 347a1b9ed6
Follow-up to d010a7d48b 2021-07-31 00:57:45 +02:00
zneix 3757784f73
Follow-up to 0933d68111 2021-07-31 00:35:19 +02:00
zneix d010a7d48b
Update QWidget::enterEvent() override
References:
- https://doc.qt.io/qt-6/qwidget.html#enterEvent
2021-07-31 00:31:15 +02:00
zneix 0933d68111
Update to Qt::SkipEmptyParts 2021-07-31 00:25:39 +02:00
zneix 1520398984
Merge remote-tracking branch 'origin/master' into zneix/feature/qt6 2021-07-30 20:11:35 +02:00
dependabot[bot] 986b2937d7
Bump lib/libcommuni from a196c53 to c613600 (#3094)
Bumps [lib/libcommuni](https://github.com/Chatterino/libcommuni) from `a196c53` to `c613600`.
- [Release notes](https://github.com/Chatterino/libcommuni/releases)
- [Commits](a196c53829...c613600e6a)

---
updated-dependencies:
- dependency-name: lib/libcommuni
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 17:59:05 +00:00
Paweł 047e10a833
Removed checks for no longer supported Qt 5.11 (#3093) 2021-07-30 16:18:30 +00:00
zneix 023149a023
Updated BaseWindow::nativeEvent
References:
- https://doc.qt.io/qt-5/qwidget.html#nativeEvent
- https://doc.qt.io/qt-6/qwidget.html#nativeEvent
2021-07-30 17:40:25 +02:00
zneix 1330076d5d
First set of code updates
Reference:
- https://doc.qt.io/qt-6/qtextstream.html#setEncoding
- https://doc.qt.io/qt-6/qtcore-changes-qt6.html#the-qstringref-class
- https://doc.qt.io/qt-6/qstringview.html
2021-07-30 17:10:00 +02:00
zneix e14050d40c
First changes to build systems
For the time being I hardcoded qt6 in cmake for convenience, but in the end there'll be a flag you should specify for building with either Qt6 or Qt5
2021-07-30 17:08:31 +02:00
dependabot[bot] 3f0db00360
Bump lib/libcommuni from ef8daa1 to a196c53 (#3091)
Bumps [lib/libcommuni](https://github.com/Chatterino/libcommuni) from `ef8daa1` to `a196c53`.
- [Release notes](https://github.com/Chatterino/libcommuni/releases)
- [Commits](ef8daa1494...a196c53829)

---
updated-dependencies:
- dependency-name: lib/libcommuni
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 09:54:26 +00:00
Paweł 02437e1e8b
Pin down libcommuni's branch we're using (#3090) 2021-07-30 09:24:27 +00:00
pajlada 770b9f263b
Fix PubSub client creation/pending topic resolving (#3037)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: zneix <zneix@zneix.eu>
2021-07-25 15:13:04 +00:00
xHeaveny 33d1837f4f
Added section with helpful Chatterino-related links to the About page (#3068)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-25 14:19:01 +00:00
Matthew Marlow 6052a0ede6
Fixed zooming bug in native-host-ext [Chrome] (#1936)
Co-authored-by: alazymeme <jkeasley@icloud.com>
Co-authored-by: 23rd <23rd@vivaldi.net>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-25 13:13:21 +00:00
Felanbird 700e092bf6
Fix non secure wiki link (#3042)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-25 12:30:40 +00:00
Edgar 77c0864408
⬆️ Updated conan dependencies (#3048)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-25 11:50:31 +00:00
Mm2PL b352dea2dc
Make the copy button switch light/dark theme (#3057)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-07-25 11:15:38 +00:00
Mm2PL f949d6d154
Add HTTP logging (#2991)
Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-25 00:52:34 +02:00
ilyazzz b8bd0a587d
Disable update checker on Flatpak (#3051)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-24 11:30:21 +00:00
Mm2PL 706605c99e
Remove copyDarkTheme.png which was an unused SVG file. (#3056)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-24 10:52:00 +00:00
Paweł 588ed557f0
Fixed comma appended to username completion when not at the beginning of the message (#3060)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-24 12:01:50 +02:00
Paweł ae9f92ded9
Make use of QUrlQuery in NetworkRequests where it was hardcoded into url (#3039)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-07-18 13:21:09 +00:00