|
|
|
@ -48,7 +48,7 @@ tbraun 2007-06-13
|
|
|
|
|
#include <tqapplication.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SymbolView::SymbolView(TQWidget *parent, int type, const char *name): KIconView( parent, name ),m_toolTip(0L)
|
|
|
|
|
SymbolView::SymbolView(TQWidget *parent, int type, const char *name): TDEIconView( parent, name ),m_toolTip(0L)
|
|
|
|
|
{
|
|
|
|
|
setGridX( 36 );
|
|
|
|
|
setGridY( 36);
|
|
|
|
@ -163,7 +163,7 @@ void SymbolView::removeToolTip()
|
|
|
|
|
void SymbolView::hideEvent( TQHideEvent *e )
|
|
|
|
|
{
|
|
|
|
|
removeToolTip();
|
|
|
|
|
KIconView::hideEvent( e );
|
|
|
|
|
TDEIconView::hideEvent( e );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SymbolView::initPage(int page)
|
|
|
|
@ -255,7 +255,7 @@ void SymbolView::fillWidget(const TQString& prefix)
|
|
|
|
|
{
|
|
|
|
|
KILE_DEBUG() << "===SymbolView::fillWidget(const TQString& " << prefix << " )===" << endl;
|
|
|
|
|
TQImage image;
|
|
|
|
|
KIconViewItem* item;
|
|
|
|
|
TDEIconViewItem* item;
|
|
|
|
|
TQStringList refCnts,paths;
|
|
|
|
|
|
|
|
|
|
if( prefix == MFUSprefix)
|
|
|
|
@ -286,7 +286,7 @@ void SymbolView::fillWidget(const TQString& prefix)
|
|
|
|
|
if ( image.load(paths[i]) )
|
|
|
|
|
{
|
|
|
|
|
// KILE_DEBUG() << "path is " << paths[i] << endl;
|
|
|
|
|
item = new KIconViewItem(this);
|
|
|
|
|
item = new TDEIconViewItem(this);
|
|
|
|
|
item->setPixmap(image);
|
|
|
|
|
item->setKey( refCnts[i] + '%' + image.text("Command") + '%' + image.text("Packages") + '%' + paths[i] );
|
|
|
|
|
image = KImageEffect::blend(colorGroup().text(), image, 1); // destroys our png comments, so we do it after reading the comments
|
|
|
|
@ -377,7 +377,7 @@ void SymbolView::slotAddToList(const TQIconViewItem *item)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tmpItem = new KIconViewItem(this,TQString(),*(item->pixmap()));
|
|
|
|
|
tmpItem = new TDEIconViewItem(this,TQString(),*(item->pixmap()));
|
|
|
|
|
tmpItem->setKey(item->key());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|