[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/kraft/src
From: Klaas Freitag <freitag () suse ! de>
Date: 2011-02-24 20:28:18
Message-ID: 20110224202818.CDDC2AC8C0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1222552 by freitag:
Store header order, some minor cleanups
U docdigestdetailview.h
M +5 -16 docdigestview.cpp
--- trunk/playground/office/kraft/src/docdigestview.cpp #1222551:1222552
@@ -97,9 +97,9 @@
DocDigestView::~DocDigestView()
{
- KraftSettings::self()->setDigestListColumns( mLatestView->header()->saveState() );
+ const QString state = mLatestView->header()->saveState().toBase64();
+ KraftSettings::self()->setDigestListColumns( state );
KraftSettings::self()->writeConfig();
-
}
QList<QTreeView *> DocDigestView::initializeTreeWidgets()
@@ -110,6 +110,8 @@
mLatestView = new QTreeView;
mTimeView = new QTreeView;
+ connect( mLatestView->header(), SIGNAL( sectionMoved(int, int,int)), this, \
SLOT(slotSaveSections()) ); +
mTreeViewIndex.resize(3);
//Add the widgets to a temporary list so we can iterate over them and centralise \
the common initialization @@ -210,7 +212,7 @@
mLatestView->sortByColumn(DocumentModel::Document_CreationDate, \
Qt::DescendingOrder); mLatestView->hideColumn( DocumentModel::Document_ClientId );
mLatestView->setSortingEnabled(true);
- mLatestView->header()->restoreState( \
KraftSettings::self()->digestListColumns().toAscii() ); + \
mLatestView->header()->restoreState( QByteArray::fromBase64( \
KraftSettings::self()->digestListColumns().toAscii() ) );
//Create the all documents view
mAllDocumentsModel = new DocumentFilterModel(-1, this);
@@ -260,18 +262,6 @@
}
}
-#if 0
-void DocDigestView::slotDocViewRequest( QTreeWidgetItem *item )
-{
- QString id = mDocIdDict[ item ];
- if( ! id.isEmpty() ) {
- kDebug() << "Opening document " << id;
-
- emit viewDocument( id );
- }
-}
-#endif
-
void DocDigestView::slotOpenLastPrinted( )
{
kDebug() << "slotOpenLastPrinted hit! ";
@@ -284,7 +274,6 @@
QModelIndex idIndx = index.sibling( index.row(), DocumentModel::Document_Ident );
QString id = idIndx.data( Qt::DisplayRole ).toString();
- kDebug() << "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO "<< "about to open: " << id;
if( index.data(DocumentModel::DataType) == DocumentModel::DocumentType)
emit openDocument( id );
#if 0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic