[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    New feature added to KDialogBase
From:       blackie () kde ! org
Date:       2000-06-06 15:46:12
[Download RAW message or body]

Hi.

Just wanted to let you all know that the following features have been added
to KDialogBase:

- The possibility to show content in several level (using folders)
  This is made possible with overloaded versions of the add*Page methods,
  which takes a QStringList argument rather than just a QString.
- Added Icons for the items in the TreeView
- Added the possibility to avoid decoration in the root of the TreeView

As an example of the folder stuff, here comes an example (out of my head,
please do not syntax check me ;-)

----------------------->
KDialogBase *dialog = new KDialogBase(...);
QFrame *top;

QStringList path;
path << "Level 1" << "Level 2" << "Page";
top = dialog->addPage(path,"Set up of ....", myPixmap1);
/* Use top */

path.reset();
path << "Level 1" << "Second" << "Page in another folder";
top = dialog->addPage(path, "See it works....");
/* Use top */

path.reset()
path << "A root page";
top = dialog->addPage(path, "Just a sample page at the root");
/* Use top */
<------------------------------

This will produce a tree like:

|
+- Level 1 +- Level 2 - page
|          |
|          +- Second - Page in another folder
|
+- A root page

Kind Regards Jesper.
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic