|
|
@ -176,7 +176,7 @@ void MultiView::readViewConfig(KConfig* c,
|
|
|
|
KConfigGroup* g = configGroup(c, prefix, postfix);
|
|
|
|
KConfigGroup* g = configGroup(c, prefix, postfix);
|
|
|
|
int n = g->readNumEntry("Panels", 1);
|
|
|
|
int n = g->readNumEntry("Panels", 1);
|
|
|
|
setChildCount(n);
|
|
|
|
setChildCount(n);
|
|
|
|
setOrientation( (g->readEntry("Qt::Orientation") == TQString("Horizontal")) ?
|
|
|
|
setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ?
|
|
|
|
Qt::Horizontal : Qt::Vertical );
|
|
|
|
Qt::Horizontal : Qt::Vertical );
|
|
|
|
|
|
|
|
|
|
|
|
setSizes(g->readIntListEntry("PanelSizes"));
|
|
|
|
setSizes(g->readIntListEntry("PanelSizes"));
|
|
|
@ -207,7 +207,7 @@ void MultiView::saveViewConfig(KConfig* c,
|
|
|
|
KConfigGroup g(c, (prefix+postfix).ascii());
|
|
|
|
KConfigGroup g(c, (prefix+postfix).ascii());
|
|
|
|
|
|
|
|
|
|
|
|
g.writeEntry("Panels", childCount());
|
|
|
|
g.writeEntry("Panels", childCount());
|
|
|
|
g.writeEntry("Qt::Orientation",
|
|
|
|
g.writeEntry("Orientation",
|
|
|
|
(orientation() == Qt::Horizontal) ?
|
|
|
|
(orientation() == Qt::Horizontal) ?
|
|
|
|
"Horizontal" : "Vertical");
|
|
|
|
"Horizontal" : "Vertical");
|
|
|
|
|
|
|
|
|
|
|
|