4cde28f29b
Supa quick fix for #1100 Looks like this bug may come back in other places where we use `TooltipWidget`. For a permanent fix we have to go through all of the places that touch `TooltipWidget` and check if they clean the preview image correctly. It would be better to merge TooltipPreviewImage and TooltipWidget together and change `TooltipWidget::setText` to be ```c++ void TooltipWidget::setText(const QString &text, ImagePtr image = ptrnull); ``` But it's impossible right now, because TooltipWidget is located in appbase and `ImagePtr` is not visible there (it's located in the main chatterino repo). Plus we also need an access to `getApp()->windows->gifRepaintRequested`. First step in implementing the permanent fix would be moving TooltipWidget to chatterino from appbase. Any thoughts on the situation?
Chatterino 2
Chatterino 2 is the second installment of the Twitch chat client series "Chatterino". For now you can check out Chatterino 1 at https://chatterino.com.
Downloading
You can download the Chatterino 2 Beta over here
You might also need to install the VC++ 2017 Redistributable from Microsoft if you do not have it installed already.
If you still receive an error about MSVCR120.dll missing, then you should install the VC++ 2013 Restributable.
Releases for linux and mac will follow soon™
Building
To get source code with required submodules run:
git clone --recursive https://github.com/fourtf/chatterino2.git
or
git clone https://github.com/fourtf/chatterino2.git
git submodule update --init --recursive
Code style
The code is formated using clang format in Qt Creator. .clang-format contains the style file for clang format.
Get it automated with QT Creator + Beautifier + Clang Format
- Download LLVM: http://releases.llvm.org/6.0.1/LLVM-6.0.1-win64.exe
- During the installation, make sure to add it to your path
- In QT Creator, select
Help>About Plugins>C++>Beautifierto enable the plugin - Restart QT Creator
- Select
Tools>Options>Beautifier - Under
GeneralselectTool: ClangFormatand enableAutomatic Formatting on File Save - Under
Clang FormatselectUse predefined style: FileandFallback style: None
Qt creator should now format the documents when saving it.