kio: remove reference to non-existing QColorGroup class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-21 18:32:30 +03:00
parent 75b7818b11
commit ffd5175527
3 changed files with 6 additions and 43 deletions

View file

@ -217,37 +217,6 @@ bool KACLListViewItem::operator< ( const QTreeWidgetItem& other ) const
return key() < static_cast<const KACLListViewItem&>(other).key();
}
#if 0
void KACLListViewItem::paintCell( QPainter* p, const QColorGroup &cg,
int column, int width, int alignment )
{
if ( isDefault ) {
setForeground( QColor( 0, 0, 255 ) );
}
if ( isPartial ) {
QFont font = p->font();
font.setItalic( true );
setForeground( QColor( 100, 100, 100 ) );
p->setFont( font );
}
QTreeWidgetItem::paintCell( p, mycg, column, width, alignment );
KACLListViewItem *below =0;
if ( itemBelow() )
below = static_cast<KACLListViewItem*>( itemBelow() );
const bool lastUser = type == KACLListView::NamedUser && below && below->type == KACLListView::NamedGroup;
const bool lastNonDefault = !isDefault && below && below->isDefault;
if ( type == KACLListView::Mask || lastUser || lastNonDefault )
{
p->setPen( QPen( Qt::gray, 0, Qt::DotLine ) );
if ( type == KACLListView::Mask )
p->drawLine( 0, 0, width - 1, 0 );
p->drawLine( 0, height() - 1, width - 1, height() - 1 );
}
}
#endif
void KACLListViewItem::updatePermPixmaps()
{
unsigned int partialPerms = value;

View file

@ -28,19 +28,18 @@
#include <QPixmap>
#include <QTreeWidget>
#include <QtCore/QHash>
#include <QHash>
#include <QButtonGroup>
#include <QStackedWidget>
#include <QCheckBox>
#include <QAbstractButton>
#include <kcombobox.h>
#include <kdialog.h>
#include <kfileitem.h>
class KACLListViewItem;
#include <QButtonGroup>
class KACLListView;
#include <QStackedWidget>
#include <QCheckBox>
#include <QAbstractButton>
class QColorGroup;
/**
@author Sean Harmer
@ -181,11 +180,6 @@ public:
void togglePerm( acl_perm_t perm );
#if 0
virtual void paintCell( QPainter *p, const QColorGroup &cg,
int column, int width, int alignment );
#endif
void updatePermPixmaps();
void repaint();

View file

@ -119,7 +119,7 @@ StatusBarExtension *StatusBarExtension::childObject( QObject *obj )
bool StatusBarExtension::eventFilter(QObject * watched, QEvent* ev)
{
if ( !GUIActivateEvent::test( ev ) ||
!::qobject_cast<KParts::ReadOnlyPart *>(watched) )
!qobject_cast<KParts::ReadOnlyPart *>(watched) )
return QObject::eventFilter(watched, ev);
KStatusBar * sb = statusBar();