Connect instance list to model.
This commit is contained in:
parent
b84dfddd1b
commit
65faabeed4
7 changed files with 105 additions and 37 deletions
|
@ -64,8 +64,6 @@ MainWindow::MainWindow ( QWidget *parent ) :
|
|||
{
|
||||
ui->setupUi ( this );
|
||||
// Create the widget
|
||||
instList.loadList();
|
||||
|
||||
view = new KCategorizedView ( ui->centralWidget );
|
||||
drawer = new KCategoryDrawer ( view );
|
||||
|
||||
|
@ -100,7 +98,9 @@ MainWindow::MainWindow ( QWidget *parent ) :
|
|||
view->setModel ( proxymodel );
|
||||
connect(view, SIGNAL(doubleClicked(const QModelIndex &)),
|
||||
this, SLOT(instanceActivated(const QModelIndex &)));
|
||||
|
||||
|
||||
// Load the instances.
|
||||
instList.loadList();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue