mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-05 13:36:18 +00:00
new photoviewer adapted for documents
This commit is contained in:
@@ -20,9 +20,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
||||
#include "application.h"
|
||||
|
||||
namespace {
|
||||
Qt::LayoutDirection _dir = Qt::LeftToRight;
|
||||
bool _rtl = false;
|
||||
|
||||
void _sendResizeEvents(QWidget *target) {
|
||||
QResizeEvent e(target->size(), QSize());
|
||||
QApplication::sendEvent(target, &e);
|
||||
@@ -37,19 +34,6 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
void rtl(bool is) {
|
||||
_rtl = is;
|
||||
_dir = _rtl ? Qt::RightToLeft : Qt::LeftToRight;
|
||||
}
|
||||
|
||||
bool rtl() {
|
||||
return _rtl;
|
||||
}
|
||||
|
||||
Qt::LayoutDirection langDir() { // current lang dependent
|
||||
return _dir;
|
||||
}
|
||||
|
||||
QPixmap myGrab(QWidget *target, const QRect &rect) {
|
||||
if (!cRetina()) return target->grab(rect);
|
||||
|
||||
|
Reference in New Issue
Block a user