Skip to content

Commit

Permalink
Revert "fix: [project] active project tree without bold set"
Browse files Browse the repository at this point in the history
This reverts commit 5d012a6.
  • Loading branch information
deepin-mozart authored Jun 20, 2024
1 parent 97832ea commit 0d2ee86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/plugins/project/mainframe/projectdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include "projectdelegate.h"

#include <DGuiApplicationHelper>
#include <QStyledItemDelegate>
#include <QAbstractItemView>

#include <QPainter>

DWIDGET_USE_NAMESPACE
DGUI_USE_NAMESPACE

class ProjectDelegatePrivate
Expand All @@ -19,7 +18,7 @@ class ProjectDelegatePrivate
};

ProjectDelegate::ProjectDelegate(QAbstractItemView *parent)
: QStyledItemDelegate(parent), d(new ProjectDelegatePrivate)
: DStyledItemDelegate(parent), d(new ProjectDelegatePrivate)
{
}

Expand Down Expand Up @@ -61,6 +60,5 @@ void ProjectDelegate::paint(QPainter *painter,

QSize ProjectDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index)
return { option.rect.width(), 24 };
}
4 changes: 2 additions & 2 deletions src/plugins/project/mainframe/projectdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#ifndef PROJECTDELEGATE_H
#define PROJECTDELEGATE_H

#include <QStyledItemDelegate>
#include <DStyledItemDelegate>

class ProjectDelegatePrivate;
class ProjectDelegate : public QStyledItemDelegate
class ProjectDelegate : public DTK_WIDGET_NAMESPACE::DStyledItemDelegate
{
Q_OBJECT
ProjectDelegatePrivate *const d;
Expand Down

0 comments on commit 0d2ee86

Please sign in to comment.