2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Beta version 10019002: fixed build for Xcode.

This commit is contained in:
John Preston
2016-11-06 21:45:50 +03:00
parent dac96bfc4a
commit 0326976473
6 changed files with 23 additions and 12 deletions

View File

@@ -28,6 +28,14 @@ namespace Notifications {
inline void defaultNotificationShown(QWidget *widget) {
}
inline bool skipAudio() {
return false;
}
inline bool skipToast() {
return false;
}
class Manager : public Window::Notifications::NativeManager {
public:
Manager();

View File

@@ -25,7 +25,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#include "historywidget.h"
#include "localstorage.h"
#include "window/notifications_manager_default.h"
#include "platform/mac/notifications_manager_mac.h"
#include "platform/platform_notifications_manager.h"
#include "boxes/contactsbox.h"
#include "boxes/aboutbox.h"
@@ -189,11 +189,6 @@ void MainWindow::psUpdateCounter() {
}
}
void MainWindow::psInitFrameless() {
psUpdatedPositionTimer.setSingleShot(true);
connect(&psUpdatedPositionTimer, SIGNAL(timeout()), this, SLOT(psSavePosition()));
}
void MainWindow::psFirstShow() {
psUpdateMargins();
@@ -258,7 +253,7 @@ void MainWindow::createGlobalMenu() {
if (!App::self()) return;
Ui::showLayer(new ContactsBox());
}, SLOT(action()));
}), SLOT(action()));
psAddContact = window->addAction(lang(lng_mac_menu_add_contact), App::wnd(), SLOT(onShowAddContact()));
window->addSeparator();
psNewGroup = window->addAction(lang(lng_mac_menu_new_group), App::wnd(), SLOT(onShowNewGroup()));

View File

@@ -25,6 +25,14 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
namespace Platform {
namespace Notifications {
inline bool skipAudio() {
return false;
}
inline bool skipToast() {
return false;
}
class Manager : public Window::Notifications::NativeManager {
public:
Manager();

View File

@@ -27,7 +27,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#else // Q_OS_WIN
namespace Platform {
inline Window::TitleWidget *CreateTitleWidget() {
inline Window::TitleWidget *CreateTitleWidget(QWidget *parent) {
return nullptr;
}

View File

@@ -31,8 +31,8 @@ TitleWidget::TitleWidget(QWidget *parent) : Window::TitleWidget(parent)
, _minimize(this, st::titleButtonMinimize)
, _maximizeRestore(this, st::titleButtonMaximize)
, _close(this, st::titleButtonClose)
, _maximized(parent->window()->windowState() & Qt::WindowMaximized)
, _shadow(this, st::titleShadow) {
, _shadow(this, st::titleShadow)
, _maximized(parent->window()->windowState() & Qt::WindowMaximized) {
_minimize->setClickedCallback([this]() {
window()->setWindowState(Qt::WindowMinimized);
_minimize->clearState();