mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-02-01 03:49:03 +01:00
Cleanup
This commit is contained in:
@@ -35,7 +35,6 @@ WindowCtrl::WindowCtrl( Preferences* pref, QObject *parent ) :
|
||||
* Initialize
|
||||
*/
|
||||
m_minimize_hide = m_pref->getMinimizeHide();
|
||||
m_tb_container = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,15 +60,6 @@ void WindowCtrl::slotWindowTest2()
|
||||
|
||||
// Do something.
|
||||
|
||||
/*
|
||||
* Disconnect container?
|
||||
*/
|
||||
/*
|
||||
m_tb_window->setParent( nullptr );
|
||||
|
||||
delete m_tb_container;
|
||||
m_tb_container = nullptr;
|
||||
*/
|
||||
emit signalConsole("Test 2 done");
|
||||
}
|
||||
|
||||
@@ -84,32 +74,6 @@ void WindowCtrl::slotWindowTest3()
|
||||
}
|
||||
|
||||
|
||||
bool WindowCtrl::captureWindow( const QString& title )
|
||||
{
|
||||
emit signalConsole("Capture");
|
||||
|
||||
if( !findWindow( title ) )
|
||||
{
|
||||
emit signalConsole("Capture error");
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Wrap Thunderbird window
|
||||
*/
|
||||
m_tb_window = QWindow::fromWinId( getWinIds()[ 0 ] );
|
||||
m_tb_window->parent();
|
||||
|
||||
m_tb_container = QWidget::createWindowContainer( m_tb_window );
|
||||
|
||||
m_tb_container->show();
|
||||
|
||||
emit signalConsole("Capture done");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Handle window title signal
|
||||
*/
|
||||
|
||||
@@ -40,15 +40,6 @@ class WindowCtrl : public QObject
|
||||
*/
|
||||
explicit WindowCtrl( Preferences* pref, QObject *parent = nullptr );
|
||||
|
||||
/**
|
||||
* @brief captureWindow. Capture the TB window.
|
||||
*
|
||||
* @param title (Part of) the window title.
|
||||
*
|
||||
* @return State of the capture.
|
||||
*/
|
||||
bool captureWindow( const QString& title );
|
||||
|
||||
public slots:
|
||||
|
||||
/**
|
||||
@@ -109,11 +100,6 @@ class WindowCtrl : public QObject
|
||||
*/
|
||||
QWindow* m_tb_window;
|
||||
|
||||
/**
|
||||
* @brief m_tb_container. Pointer to the TB widget container.
|
||||
*/
|
||||
QWidget* m_tb_container;
|
||||
|
||||
/**
|
||||
* @brief m_window_title. Title of the TB window.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user