mirror of https://github.com/procxx/kepka.git
				
				
				
			Alpha 1.0.10: fix clang/GCC and old OS X build.
This commit is contained in:
		
							parent
							
								
									7adfe93a8d
								
							
						
					
					
						commit
						695733f520
					
				|  | @ -78,6 +78,12 @@ DialogsInner::DialogsInner(QWidget *parent, QWidget *main) : SplittedWidget(pare | ||||||
| , _a_pinnedShifting(animation(this, &DialogsInner::step_pinnedShifting)) | , _a_pinnedShifting(animation(this, &DialogsInner::step_pinnedShifting)) | ||||||
| , _addContactLnk(this, lang(lng_add_contact_button)) | , _addContactLnk(this, lang(lng_add_contact_button)) | ||||||
| , _cancelSearchInPeer(this, st::dialogsCancelSearchInPeer) { | , _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()) { | 	if (Global::DialogsModeEnabled()) { | ||||||
| 		_dialogsImportant = std_::make_unique<Dialogs::IndexedList>(Dialogs::SortMode::Date); | 		_dialogsImportant = std_::make_unique<Dialogs::IndexedList>(Dialogs::SortMode::Date); | ||||||
| 		_importantSwitch = std_::make_unique<ImportantSwitch>(); | 		_importantSwitch = std_::make_unique<ImportantSwitch>(); | ||||||
|  |  | ||||||
|  | @ -134,7 +134,8 @@ public: | ||||||
| 		}; | 		}; | ||||||
| 		Q_DECLARE_FLAGS(Flags, Flag); | 		Q_DECLARE_FLAGS(Flags, Flag); | ||||||
| 
 | 
 | ||||||
| 		StateRequest() = default; | 		StateRequest() { | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		style::align align = style::al_left; | 		style::align align = style::al_left; | ||||||
| 		Flags flags = Flag::LookupLink; | 		Flags flags = Flag::LookupLink; | ||||||
|  | @ -150,7 +151,8 @@ public: | ||||||
| 		return getState(rtl() ? (outerw - x - width) : x, y, width, request); | 		return getState(rtl() ? (outerw - x - width) : x, y, width, request); | ||||||
| 	} | 	} | ||||||
| 	struct StateRequestElided : public StateRequest { | 	struct StateRequestElided : public StateRequest { | ||||||
| 		StateRequestElided() = default; | 		StateRequestElided() { | ||||||
|  | 		} | ||||||
| 		StateRequestElided(const StateRequest &other) : StateRequest(other) { | 		StateRequestElided(const StateRequest &other) : StateRequest(other) { | ||||||
| 		} | 		} | ||||||
| 		int lines = 1; | 		int lines = 1; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue