weekly "fixed building on linux"

This commit is contained in:
fourtf 2018-05-16 17:47:58 +02:00
parent 7b192897da
commit 8ee0f85a2b
3 changed files with 9 additions and 5 deletions

View file

@ -45,6 +45,10 @@ exists ($(QTDIR)/include/QtWebEngine/QtWebEngine) {
DEFINES += "USEWEBENGINE"
}
linux {
LIBS += -lrt
}
win32 {
LIBS += -luser32
}

View file

@ -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;

View file

@ -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 };