mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
dolphin: connect to KDirNotify signals after InformationPanelContent is created
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
906c5331da
commit
c252de24e2
1 changed files with 7 additions and 7 deletions
|
@ -341,6 +341,13 @@ void InformationPanel::init()
|
|||
Q_ASSERT(m_urlChangedTimer->interval() < m_infoTimer->interval());
|
||||
Q_ASSERT(m_urlChangedTimer->interval() < m_resetUrlTimer->interval());
|
||||
|
||||
m_content = new InformationPanelContent(this);
|
||||
connect(m_content, SIGNAL(urlActivated(KUrl)), this, SIGNAL(urlActivated(KUrl)));
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->addWidget(m_content);
|
||||
|
||||
org::kde::KDirNotify* dirNotify = new org::kde::KDirNotify(QString(), QString(),
|
||||
QDBusConnection::sessionBus(), this);
|
||||
connect(dirNotify, SIGNAL(FileRenamed(QString,QString)), SLOT(slotFileRenamed(QString,QString)));
|
||||
|
@ -350,13 +357,6 @@ void InformationPanel::init()
|
|||
connect(dirNotify, SIGNAL(enteredDirectory(QString)), SLOT(slotEnteredDirectory(QString)));
|
||||
connect(dirNotify, SIGNAL(leftDirectory(QString)), SLOT(slotLeftDirectory(QString)));
|
||||
|
||||
m_content = new InformationPanelContent(this);
|
||||
connect(m_content, SIGNAL(urlActivated(KUrl)), this, SIGNAL(urlActivated(KUrl)));
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->addWidget(m_content);
|
||||
|
||||
m_initialized = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue