|
|
|
@ -105,7 +105,7 @@ MainWindow::MainWindow()
|
|
|
|
|
|
|
|
|
|
// Set the shell's ui resource file
|
|
|
|
|
setXMLFile("kftpgrabberui.rc");
|
|
|
|
|
connect(TDEApplication::kApplication(), TQ_SIGNAL(shutDown()), this, TQ_SLOT(appShutdown()));
|
|
|
|
|
connect(tdeApp, TQ_SIGNAL(shutDown()), this, TQ_SLOT(appShutdown()));
|
|
|
|
|
|
|
|
|
|
// Restore size and position
|
|
|
|
|
resize(KFTPCore::Config::size());
|
|
|
|
@ -188,7 +188,7 @@ void MainWindow::appShutdown()
|
|
|
|
|
|
|
|
|
|
bool MainWindow::queryClose()
|
|
|
|
|
{
|
|
|
|
|
if(TDEApplication::kApplication()->sessionSaving()) {
|
|
|
|
|
if(tdeApp->sessionSaving()) {
|
|
|
|
|
m_actions->m_closeApp = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -201,8 +201,8 @@ bool MainWindow::queryClose()
|
|
|
|
|
|
|
|
|
|
// Compute size and position of the pixmap to be grabbed:
|
|
|
|
|
TQPoint g = KFTPWidgets::SystemTray::self()->mapToGlobal(KFTPWidgets::SystemTray::self()->pos());
|
|
|
|
|
int desktopWidth = kapp->desktop()->width();
|
|
|
|
|
int desktopHeight = kapp->desktop()->height();
|
|
|
|
|
int desktopWidth = tdeApp->desktop()->width();
|
|
|
|
|
int desktopHeight = tdeApp->desktop()->height();
|
|
|
|
|
int tw = KFTPWidgets::SystemTray::self()->width();
|
|
|
|
|
int th = KFTPWidgets::SystemTray::self()->height();
|
|
|
|
|
int w = desktopWidth / 4;
|
|
|
|
|