Alpha 1.0.10: fix clang/GCC and old OS X build.

This commit is contained in:
John Preston 2017-02-17 12:56:42 +03:00
parent 7adfe93a8d
commit 695733f520
2 changed files with 10 additions and 2 deletions

View file

@ -78,6 +78,12 @@ DialogsInner::DialogsInner(QWidget *parent, QWidget *main) : SplittedWidget(pare
, _a_pinnedShifting(animation(this, &DialogsInner::step_pinnedShifting))
, _addContactLnk(this, lang(lng_add_contact_button))
, _cancelSearchInPeer(this, st::dialogsCancelSearchInPeer) {
#ifdef OS_MAC_OLD
// Qt 5.3.2 build is working with glitches otherwise.
setAttribute(Qt::WA_OpaquePaintEvent, false);
#endif // OS_MAC_OLD
if (Global::DialogsModeEnabled()) {
_dialogsImportant = std_::make_unique<Dialogs::IndexedList>(Dialogs::SortMode::Date);
_importantSwitch = std_::make_unique<ImportantSwitch>();

View file

@ -134,7 +134,8 @@ public:
};
Q_DECLARE_FLAGS(Flags, Flag);
StateRequest() = default;
StateRequest() {
}
style::align align = style::al_left;
Flags flags = Flag::LookupLink;
@ -150,7 +151,8 @@ public:
return getState(rtl() ? (outerw - x - width) : x, y, width, request);
}
struct StateRequestElided : public StateRequest {
StateRequestElided() = default;
StateRequestElided() {
}
StateRequestElided(const StateRequest &other) : StateRequest(other) {
}
int lines = 1;