|
|
|
@ -26,7 +26,6 @@
|
|
|
|
|
DocConfigListView::DocConfigListView(TQWidget *parent, const char *name)
|
|
|
|
|
:TDEListView(parent, name)
|
|
|
|
|
{
|
|
|
|
|
// setSorting(-1);
|
|
|
|
|
addColumn(i18n("TOC"));
|
|
|
|
|
addColumn(i18n("Index"));
|
|
|
|
|
addColumn(i18n("Search"));
|
|
|
|
@ -39,17 +38,19 @@ DocConfigListView::DocConfigListView(TQWidget *parent, const char *name)
|
|
|
|
|
// setColumnWidthMode(4, TQListView::Maximum);
|
|
|
|
|
setAllColumnsShowFocus(true);
|
|
|
|
|
setResizeMode( TQListView::LastColumn );
|
|
|
|
|
setSorting(3);
|
|
|
|
|
|
|
|
|
|
connect(this, TQT_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)),
|
|
|
|
|
this, TQT_SLOT(clickedItem(TQListViewItem*, const TQPoint&, int )));
|
|
|
|
|
this, TQT_SLOT(itemClicked(TQListViewItem*, const TQPoint&, int )));
|
|
|
|
|
connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)),
|
|
|
|
|
this, TQT_SLOT(itemDoubleClicked(TQListViewItem*, const TQPoint&, int )));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DocConfigListView::~DocConfigListView()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DocConfigListView::clickedItem(TQListViewItem *item, const TQPoint &// pnt
|
|
|
|
|
, int c)
|
|
|
|
|
void DocConfigListView::itemClicked(TQListViewItem *item, const TQPoint &/*pnt*/, int c)
|
|
|
|
|
{
|
|
|
|
|
if (!item)
|
|
|
|
|
return;
|
|
|
|
@ -69,4 +70,14 @@ void DocConfigListView::clickedItem(TQListViewItem *item, const TQPoint &// pnt
|
|
|
|
|
repaintItem(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DocConfigListView::itemDoubleClicked(TQListViewItem *item, const TQPoint &/*pnt*/, int c)
|
|
|
|
|
{
|
|
|
|
|
if (!item)
|
|
|
|
|
return;
|
|
|
|
|
ConfigurationItem *cfg = dynamic_cast<ConfigurationItem*>(item);
|
|
|
|
|
if (!cfg)
|
|
|
|
|
return;
|
|
|
|
|
emit itemActivated();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include "docconfiglistview.moc"
|
|
|
|
|