kde5: get/setLib works again

Change-Id: Icc007d5c08f88ffdeb6e2d033615dccb140862ea
This commit is contained in:
Katarina Behrens
2017-10-04 20:45:28 +02:00
committed by Thorsten Behrens
parent 187324751d
commit a8c16e7c42
3 changed files with 8 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ class KDE5Data //: public X11SalData
virtual void Init() ;
virtual void initNWF() ;
virtual void deInitNWF() ;
KDE5XLib* GetLib() { return pXLib_; }
private:
KDE5XLib *pXLib_;
QApplication* qMyApp;

View File

@@ -23,6 +23,7 @@
class SalYieldMutex;
class SalFrame;
class KDE5XLib;
class KDE5SalInstance : public SvpSalInstance
{
@@ -41,6 +42,10 @@ public:
css::uno::XComponentContext >& ) override;
virtual bool IsMainThread() const override;
void SetLib( KDE5XLib *pXLib ) { m_pXLib = pXLib; }
private:
KDE5XLib *m_pXLib;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -79,7 +79,7 @@ extern "C" {
KDE5Data *salData = new KDE5Data( pInstance );
salData->Init();
salData->initNWF();
//pInstance->SetLib(salData->GetLib());
pInstance->SetLib(salData->GetLib());
return pInstance;
}