opnsense-ports/emulators/dboxfe/files/patch-src__dboxfe.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

30 lines
1.1 KiB
C++

--- ./src/dboxfe.cpp.orig 2007-09-22 13:25:00.000000000 +0400
+++ ./src/dboxfe.cpp 2007-12-08 16:43:17.000000000 +0300
@@ -65,7 +65,7 @@
connect ( chkBoxStartTrayIcon, SIGNAL ( toggled ( bool ) ), this, SLOT ( slotChkBoxStartTrayIconToggled ( bool ) ) );
// windows title for the application
- titleLin = tr ( "DBoxFE - Front End for DOSBox 0.7x - Linux Version " ) + getAppVersion();
+ titleLin = tr ( "DBoxFE" );
titleWin = tr ( "DBoxFE - Front End for DOSBox 0.7x - Windows Version " ) + getAppVersion();
titleMac = tr ( "DBoxFE - Front End for DOSBox 0.7x - Mac Version " ) + getAppVersion();
@@ -83,18 +83,6 @@
QApplication::setStyle ( "plastique" );
#endif
-#ifdef Q_OS_UNIX
- setWindowTitle ( titleLin );
- QApplication::setStyle ( "plastique" );
-#endif
-
- // center the application on desktop screen
- QDesktopWidget *desktop = qApp->desktop();
- const QRect rect = desktop->availableGeometry ( desktop->primaryScreen() );
- int left = ( rect.width() - width() ) / 2;
- int top = ( rect.height() - height() ) / 2;
- setGeometry ( left, top, width(), height() );
-
//for future release :)
chkBoxStartTrayIcon->setVisible( false );
}