mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 08:51:12 +00:00
fixed single-column on retina, fixed save from mediaview
This commit is contained in:
parent
8d3aa5c31e
commit
c964742227
@ -233,12 +233,10 @@ void MaskedButton::paintEvent(QPaintEvent *e) {
|
||||
p.drawText(t.x(), t.y() + _st.font->ascent, _text);
|
||||
}
|
||||
|
||||
const QRect &i((_state & StateDown) ? _st.downIcon : _st.icon);
|
||||
if (i.width()) {
|
||||
const style::sprite &i((_state & StateDown) ? _st.downIcon : _st.icon);
|
||||
if (i.pxWidth()) {
|
||||
const QPoint &t((_state & StateDown) ? _st.downIconPos : _st.iconPos);
|
||||
QRect r(i);
|
||||
r.moveTo(t);
|
||||
p.fillRect(r, a_bg.current());
|
||||
p.fillRect(QRect(t, QSize(i.pxWidth(), i.pxHeight())), a_bg.current());
|
||||
p.drawPixmap(t, App::sprite(), i);
|
||||
}
|
||||
}
|
||||
|
@ -1148,7 +1148,7 @@ void MediaView::receiveMouse() {
|
||||
|
||||
void MediaView::onCheckActive() {
|
||||
if (App::wnd() && isVisible()) {
|
||||
if (App::wnd()->isActiveWindow()) {
|
||||
if (App::wnd()->isActiveWindow() && App::wnd()->hasFocus()) {
|
||||
activateWindow();
|
||||
setFocus();
|
||||
}
|
||||
|
@ -329,9 +329,9 @@ NotifyWindow::~NotifyWindow() {
|
||||
if (App::wnd()) App::wnd()->notifyShowNext(this);
|
||||
}
|
||||
|
||||
Window::Window(QWidget *parent) : PsMainWindow(parent),
|
||||
Window::Window(QWidget *parent) : PsMainWindow(parent), _serviceHistoryRequest(0),
|
||||
intro(0), main(0), settings(0), layerBG(0), _topWidget(0),
|
||||
_connecting(0), _clearManager(0), dragging(false), _inactivePress(false), _mediaView(0), _serviceHistoryRequest(0) {
|
||||
_connecting(0), _clearManager(0), dragging(false), _inactivePress(false), _mediaView(0) {
|
||||
|
||||
icon16 = icon256.scaledToWidth(16, Qt::SmoothTransformation);
|
||||
icon32 = icon256.scaledToWidth(32, Qt::SmoothTransformation);
|
||||
|
Loading…
Reference in New Issue
Block a user