Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3edb64fe authored by Laurent Montel's avatar Laurent Montel 😁

Fix save/restore header

parent 20d61312
......@@ -23,6 +23,7 @@
#include <KStandardGuiItem>
#include <QTreeWidget>
#include <QHeaderView>
MessagePropertyDialog::MessagePropertyDialog( QWidget *parent, KTNEFMessage *msg )
: KDialog( parent )
......@@ -62,11 +63,16 @@ void MessagePropertyDialog::readConfig()
if ( size.isValid() ) {
resize( size );
}
const QByteArray headerState = group.readEntry( "HeaderState" , QByteArray());
if (!headerState.isEmpty()) {
mListView->header()->restoreState(headerState);
}
}
void MessagePropertyDialog::writeConfig()
{
KConfigGroup group( KGlobal::config(), "MessagePropertyDialog" );
group.writeEntry( "Size", size() );
group.writeEntry( "HeaderState" , mListView->header()->saveState());
group.sync();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment