Fix trayIconActivated MOC mismatch on macOS
Remove Q_OS_MAC guards around trayIconActivated slot declaration and implementation. MOC generates code referencing the slot unconditionally, causing a build error on macOS. The slot is harmless when present - on macOS the tray icon isn't created so it simply never gets called. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -675,7 +675,6 @@ void TrianglesGUI::createTrayIconMenu()
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
void TrianglesGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
{
|
||||
if(reason == QSystemTrayIcon::Trigger)
|
||||
@@ -684,7 +683,6 @@ void TrianglesGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
toggleHideAction->trigger();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void TrianglesGUI::saveWindowGeometry()
|
||||
{
|
||||
|
||||
@@ -208,10 +208,8 @@ private slots:
|
||||
void optionsClicked();
|
||||
/** Show about dialog */
|
||||
void aboutClicked();
|
||||
#ifndef Q_OS_MAC
|
||||
/** Handle tray icon clicked */
|
||||
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
|
||||
#endif
|
||||
/** Show incoming transaction notification for new transactions.
|
||||
|
||||
The new items are those between start and end inclusive, under the given parent item.
|
||||
|
||||
Reference in New Issue
Block a user