ALT Linux Bugzilla
– Attachment 3546 Details for
Bug 20095
Центрировать окно при отсутствии ~/.config/alterator/browser.ini
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Центрирование
main.window.positioning.patch (text/plain), 849 bytes, created by
Lenar Shakirov
on 2009-05-19 15:01:00 MSD
(
hide
)
Description:
Центрирование
Filename:
MIME Type:
Creator:
Lenar Shakirov
Created:
2009-05-19 15:01:00 MSD
Size:
849 bytes
patch
obsolete
>--- main_window.cc.orig 2008-01-10 17:56:35 +0300 >+++ main_window.cc 2009-05-19 14:19:18 +0400 >@@ -105,10 +105,10 @@ > QSettings settings(QSettings::IniFormat, QSettings::UserScope, "alterator", "browser", this); > settings.setFallbacksEnabled(false); > settings.beginGroup("qt"); >- int wnd_x = settings.value("main_window_x", 0).toInt(); >- int wnd_y = settings.value("main_window_y", 0).toInt(); > int wnd_width = settings.value("main_window_width", wnd_recom_width).toInt(); > int wnd_height = settings.value("main_window_height", wnd_recom_height).toInt(); >+ int wnd_x = settings.value("main_window_x", (int)(desktop_geom.width()/2 - (wnd_width/2))).toInt(); >+ int wnd_y = settings.value("main_window_y", (int)(desktop_geom.height()/2 - (wnd_height/2))).toInt(); > settings.endGroup(); > > geometry_ = QRect(wnd_x, wnd_y, wnd_width, wnd_height);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20095
: 3546