update linux part

This commit is contained in:
Ximi1970
2020-04-30 19:39:12 +02:00
parent f7c489712d
commit 47cfc5da2b
3 changed files with 25 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ WindowCtrlUnix::WindowCtrlUnix( QObject *parent ) : QObject( parent )
*/
m_tb_window = 0;
m_tb_windows = QList< quint64 >();
m_state = QString();
m_window_state = QString();
/*
* Get the base display and window
@@ -41,6 +41,26 @@ void WindowCtrlUnix::setMinimizeType( Preferences::MinimizeType type )
}
/*
* Set the window state.
*/
void WindowCtrlUnix::setWindowState( const QString& state )
{
m_window_state = state;
}
/**
* @brief getWindowState. Get the window state.
*
* @return The state.
*/
const QString& WindowCtrlUnix::getWindowState() const
{
return m_window_state;
}
/*
* Get the minimize type
*/

View File

@@ -137,7 +137,7 @@ class WindowCtrlUnix : public QObject
*
* @return The state.
*/
QString& getWindowState() const;
const QString& getWindowState() const;
/**
* @brief setMinimizeType
@@ -389,7 +389,7 @@ class WindowCtrlUnix : public QObject
/**
* @brief m_state. State of the TB window.
*/
QString m_state;
QString m_window_state;
};
#endif // WINDOWCTRLUNIX_H

View File

@@ -58,6 +58,7 @@ WindowCtrlWin::~WindowCtrlWin()
stopInterceptMinimizeWindow();
}
/*
* Set the window state.
*/
@@ -66,6 +67,7 @@ void WindowCtrlWin::setWindowState( const QString& state )
m_window_state = state;
}
/**
* @brief getWindowState. Get the window state.
*