mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move many widget classes to lib_ui.
This commit is contained in:
@@ -201,12 +201,6 @@ QRect psDesktopRect() {
|
||||
return _monitorRect;
|
||||
}
|
||||
|
||||
void psShowOverAll(QWidget *w, bool canFocus) {
|
||||
}
|
||||
|
||||
void psBringToBack(QWidget *w) {
|
||||
}
|
||||
|
||||
int psCleanup() {
|
||||
__try
|
||||
{
|
||||
@@ -308,10 +302,6 @@ void start() {
|
||||
void finish() {
|
||||
}
|
||||
|
||||
bool IsApplicationActive() {
|
||||
return QApplication::activeWindow() != nullptr;
|
||||
}
|
||||
|
||||
void SetApplicationIcon(const QIcon &icon) {
|
||||
QApplication::setWindowIcon(icon);
|
||||
}
|
||||
@@ -572,17 +562,6 @@ void psSendToMenu(bool send, bool silent) {
|
||||
_manageAppLnk(send, silent, CSIDL_SENDTO, L"-sendpath", L"Telegram send to link.\nYou can disable send to menu item in Telegram settings.");
|
||||
}
|
||||
|
||||
void psUpdateOverlayed(QWidget *widget) {
|
||||
bool wm = widget->testAttribute(Qt::WA_Mapped), wv = widget->testAttribute(Qt::WA_WState_Visible);
|
||||
if (!wm) widget->setAttribute(Qt::WA_Mapped, true);
|
||||
if (!wv) widget->setAttribute(Qt::WA_WState_Visible, true);
|
||||
widget->update();
|
||||
QEvent e(QEvent::UpdateRequest);
|
||||
QGuiApplication::sendEvent(widget, &e);
|
||||
if (!wm) widget->setAttribute(Qt::WA_Mapped, false);
|
||||
if (!wv) widget->setAttribute(Qt::WA_WState_Visible, false);
|
||||
}
|
||||
|
||||
void psWriteDump() {
|
||||
#ifndef TDESKTOP_DISABLE_CRASH_REPORTS
|
||||
PROCESS_MEMORY_COUNTERS data = { 0 };
|
||||
|
Reference in New Issue
Block a user