@ -474,10 +474,10 @@ bool KexiBlobTableEdit::eventFilter( TQObject *o, TQEvent *e )
KEXI_CELLEDITOR_FACTORY_ITEM_IMPL ( KexiBlobEditorFactoryItem , KexiBlobTableEdit )
//=======================
// Kexi K IconTableEdit class is temporarily here:
// Kexi TDE IconTableEdit class is temporarily here:
//! @internal
class Kexi K IconTableEdit: : Private
class Kexi TDE IconTableEdit: : Private
{
public :
Private ( )
@ -490,61 +490,61 @@ public:
TQCache < TQPixmap > pixmapCache ;
} ;
Kexi KIconTableEdit: : KexiK IconTableEdit( KexiTableViewColumn & column , TQWidget * parent )
Kexi TDEIconTableEdit: : KexiTDE IconTableEdit( KexiTableViewColumn & column , TQWidget * parent )
: KexiTableEdit ( column , parent )
, d ( new Private ( ) )
{
setName ( " Kexi K IconTableEdit" ) ;
setName ( " Kexi TDE IconTableEdit" ) ;
init ( ) ;
}
Kexi KIconTableEdit: : ~ KexiK IconTableEdit( )
Kexi TDEIconTableEdit: : ~ KexiTDE IconTableEdit( )
{
delete d ;
}
void Kexi K IconTableEdit: : init ( )
void Kexi TDE IconTableEdit: : init ( )
{
m_hasFocusableWidget = false ;
d - > pixmapCache . setAutoDelete ( true ) ;
}
void Kexi K IconTableEdit: : setValueInternal ( const TQVariant & /*add*/ , bool /*removeOld*/ )
void Kexi TDE IconTableEdit: : setValueInternal ( const TQVariant & /*add*/ , bool /*removeOld*/ )
{
d - > currentValue = m_origValue ;
}
bool Kexi K IconTableEdit: : valueIsNull ( )
bool Kexi TDE IconTableEdit: : valueIsNull ( )
{
return d - > currentValue . isNull ( ) ;
}
bool Kexi K IconTableEdit: : valueIsEmpty ( )
bool Kexi TDE IconTableEdit: : valueIsEmpty ( )
{
return d - > currentValue . isNull ( ) ;
}
TQVariant Kexi K IconTableEdit: : value ( )
TQVariant Kexi TDE IconTableEdit: : value ( )
{
return d - > currentValue ;
}
void Kexi K IconTableEdit: : clear ( )
void Kexi TDE IconTableEdit: : clear ( )
{
d - > currentValue = TQVariant ( ) ;
}
bool Kexi K IconTableEdit: : cursorAtStart ( )
bool Kexi TDE IconTableEdit: : cursorAtStart ( )
{
return true ;
}
bool Kexi K IconTableEdit: : cursorAtEnd ( )
bool Kexi TDE IconTableEdit: : cursorAtEnd ( )
{
return true ;
}
void Kexi K IconTableEdit: : setupContents ( TQPainter * p , bool /*focused*/ , const TQVariant & val ,
void Kexi TDE IconTableEdit: : setupContents ( TQPainter * p , bool /*focused*/ , const TQVariant & val ,
TQString & /*txt*/ , int & /*align*/ , int & /*x*/ , int & y_offset , int & w , int & h )
{
Q_UNUSED ( y_offset ) ;
@ -571,8 +571,8 @@ void KexiKIconTableEdit::setupContents( TQPainter *p, bool /*focused*/, const TQ
TQPixmap * pix = 0 ;
if ( ! key . isEmpty ( ) & & ! ( pix = d - > pixmapCache [ key ] ) ) {
//cache pixmap
TQPixmap pm = TDEGlobal : : iconLoader ( ) - > loadIcon ( key , K Icon: : Small ,
0 , K Icon: : DefaultState , 0L , true /*canReturnNull*/ ) ;
TQPixmap pm = TDEGlobal : : iconLoader ( ) - > loadIcon ( key , TDE Icon: : Small ,
0 , TDE Icon: : DefaultState , 0L , true /*canReturnNull*/ ) ;
if ( ! pm . isNull ( ) ) {
pix = new TQPixmap ( pm ) ;
d - > pixmapCache . insert ( key , pix ) ;
@ -584,12 +584,12 @@ void KexiKIconTableEdit::setupContents( TQPainter *p, bool /*focused*/, const TQ
}
}
void Kexi K IconTableEdit: : handleCopyAction ( const TQVariant & value , const TQVariant & visibleValue )
void Kexi TDE IconTableEdit: : handleCopyAction ( const TQVariant & value , const TQVariant & visibleValue )
{
Q_UNUSED ( value ) ;
Q_UNUSED ( visibleValue ) ;
}
KEXI_CELLEDITOR_FACTORY_ITEM_IMPL ( Kexi KIconTableEditorFactoryItem, KexiK IconTableEdit)
KEXI_CELLEDITOR_FACTORY_ITEM_IMPL ( Kexi TDEIconTableEditorFactoryItem, KexiTDE IconTableEdit)
# include "kexiblobtableedit.moc"