This commit is contained in:
Ximi1970
2020-02-25 22:53:36 +01:00
parent 706611d4c3
commit df6d128bd7
2 changed files with 0 additions and 50 deletions

View File

@@ -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
*/

View File

@@ -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.
*/