mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -07:00
qt 6.5 compatibility (#4796)
* remove metatypes definitions * deprecation of QApplication::setActiveWindow
This commit is contained in:
parent
1a40102f71
commit
421da882d8
7 changed files with 3 additions and 60 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "abstractclient.h"
|
||||
|
||||
#include "client_metatypes.h"
|
||||
#include "featureset.h"
|
||||
#include "get_pb_extension.h"
|
||||
#include "pb/commands.pb.h"
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
#ifndef CLIENT_METATYPES_H
|
||||
#define CLIENT_METATYPES_H
|
||||
|
||||
#include <QMetaType>
|
||||
|
||||
Q_DECLARE_METATYPE(QVariant)
|
||||
Q_DECLARE_METATYPE(CommandContainer)
|
||||
Q_DECLARE_METATYPE(Response)
|
||||
Q_DECLARE_METATYPE(Response::ResponseCode)
|
||||
Q_DECLARE_METATYPE(ClientStatus)
|
||||
Q_DECLARE_METATYPE(RoomEvent)
|
||||
Q_DECLARE_METATYPE(GameEventContainer)
|
||||
Q_DECLARE_METATYPE(Event_ServerIdentification)
|
||||
Q_DECLARE_METATYPE(Event_ConnectionClosed)
|
||||
Q_DECLARE_METATYPE(Event_ServerShutdown)
|
||||
Q_DECLARE_METATYPE(Event_AddToList)
|
||||
Q_DECLARE_METATYPE(Event_RemoveFromList)
|
||||
Q_DECLARE_METATYPE(Event_UserJoined)
|
||||
Q_DECLARE_METATYPE(Event_UserLeft)
|
||||
Q_DECLARE_METATYPE(Event_ServerMessage)
|
||||
Q_DECLARE_METATYPE(Event_ListRooms)
|
||||
Q_DECLARE_METATYPE(Event_GameJoined)
|
||||
Q_DECLARE_METATYPE(Event_UserMessage)
|
||||
Q_DECLARE_METATYPE(ServerInfo_User)
|
||||
Q_DECLARE_METATYPE(QList<ServerInfo_User>)
|
||||
Q_DECLARE_METATYPE(Event_ReplayAdded)
|
||||
Q_DECLARE_METATYPE(QList<QString>)
|
||||
|
||||
#endif
|
||||
|
|
@ -159,7 +159,7 @@ void TabMessage::showSystemPopup(const Event_UserMessage &event)
|
|||
void TabMessage::messageClicked()
|
||||
{
|
||||
tabSupervisor->setCurrentIndex(tabSupervisor->indexOf(this));
|
||||
QApplication::setActiveWindow(this);
|
||||
activateWindow();
|
||||
emit maximizeClient();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ void TabRoom::retranslateUi()
|
|||
|
||||
void TabRoom::focusTab()
|
||||
{
|
||||
QApplication::setActiveWindow(this);
|
||||
activateWindow();
|
||||
tabSupervisor->setCurrentIndex(tabSupervisor->indexOf(this));
|
||||
emit maximizeClient();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason)
|
|||
showMinimized();
|
||||
} else {
|
||||
showNormal();
|
||||
QApplication::setActiveWindow(this);
|
||||
activateWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue