From 8ee0f85a2b8fde82e21d126f2b51a0a3359cda46 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 16 May 2018 17:47:58 +0200 Subject: [PATCH] weekly "fixed building on linux" --- chatterino.pro | 4 ++++ src/widgets/accountpopup.cpp | 8 ++++---- src/widgets/splitcontainer.hpp | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/chatterino.pro b/chatterino.pro index 5317d757f..eff6c7159 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -45,6 +45,10 @@ exists ($(QTDIR)/include/QtWebEngine/QtWebEngine) { DEFINES += "USEWEBENGINE" } +linux { + LIBS += -lrt +} + win32 { LIBS += -luser32 } diff --git a/src/widgets/accountpopup.cpp b/src/widgets/accountpopup.cpp index 560aa9d34..76263f2e9 100644 --- a/src/widgets/accountpopup.cpp +++ b/src/widgets/accountpopup.cpp @@ -121,11 +121,11 @@ AccountPopupWidget::AccountPopupWidget(ChannelPtr _channel) switch (result) { case IgnoreResult_Success: { this->relationship.setIgnoring(true); - emit refreshButtons(); + emit this->refreshButtons(); } break; case IgnoreResult_AlreadyIgnored: { this->relationship.setIgnoring(true); - emit refreshButtons(); + emit this->refreshButtons(); } break; case IgnoreResult_Failed: { } break; @@ -137,7 +137,7 @@ AccountPopupWidget::AccountPopupWidget(ChannelPtr _channel) switch (result) { case UnignoreResult_Success: { this->relationship.setIgnoring(false); - emit refreshButtons(); + emit this->refreshButtons(); } break; case UnignoreResult_Failed: { } break; @@ -230,7 +230,7 @@ void AccountPopupWidget::getUserData() currentUser->checkFollow(this->popupWidgetUser.userID, [=](auto result) { this->relationship.setFollowing(result == FollowResult_Following); - emit refreshButtons(); + emit this->refreshButtons(); }); bool isIgnoring = false; diff --git a/src/widgets/splitcontainer.hpp b/src/widgets/splitcontainer.hpp index de203833f..c366850b2 100644 --- a/src/widgets/splitcontainer.hpp +++ b/src/widgets/splitcontainer.hpp @@ -33,9 +33,9 @@ class SplitContainer : public BaseWidget, pajlada::Signals::SignalHolder { Q_OBJECT +public: struct Node; -public: // fourtf: !!! preserve the order of left, up, right and down enum Direction { Left, Above, Right, Below };