Use window title from session. Fixes #167
This commit is contained in:
@@ -35,6 +35,7 @@ KSession::KSession(QObject *parent) :
|
||||
QObject(parent), m_session(createSession("KSession"))
|
||||
{
|
||||
connect(m_session, SIGNAL(finished()), this, SLOT(sessionFinished()));
|
||||
connect(m_session, SIGNAL(titleChanged()), this, SIGNAL(titleChanged()));
|
||||
}
|
||||
|
||||
KSession::~KSession()
|
||||
@@ -238,4 +239,7 @@ QString KSession::keyBindings()
|
||||
return m_session->keyBindings();
|
||||
}
|
||||
|
||||
|
||||
QString KSession::getTitle()
|
||||
{
|
||||
return m_session->userTitle();
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ class KSession : public QObject
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString kbScheme READ getKeyBindings WRITE setKeyBindings NOTIFY changedKeyBindings)
|
||||
Q_PROPERTY(QString initialWorkingDirectory READ getInitialWorkingDirectory WRITE setInitialWorkingDirectory)
|
||||
Q_PROPERTY(QString title READ getTitle NOTIFY titleChanged)
|
||||
|
||||
public:
|
||||
KSession(QObject *parent = 0);
|
||||
@@ -84,6 +85,8 @@ public:
|
||||
//! Return current key bindings
|
||||
QString keyBindings();
|
||||
|
||||
QString getTitle();
|
||||
|
||||
signals:
|
||||
void finished();
|
||||
void copyAvailable(bool);
|
||||
@@ -95,6 +98,7 @@ signals:
|
||||
|
||||
void changedKeyBindings(QString kb);
|
||||
|
||||
void titleChanged();
|
||||
|
||||
public slots:
|
||||
/*! Set named key binding for given widget
|
||||
|
||||
Reference in New Issue
Block a user