Skip to content

Commit

Permalink
A slightly better text for empty Favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Jan 24, 2024
1 parent 2a46b4b commit 8be78b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin-fancymenu/lxqtfancymenuwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ LXQtFancyMenuWindow::LXQtFancyMenuWindow(QWidget *parent)

// label for empty Favorites
QVBoxLayout *appLayout = new QVBoxLayout(mAppView);
mFavoritesLabel = new QLabel(tr("Add your favorites by right clicking items from other categories."));
mFavoritesLabel = new QLabel(tr("Add your favorites by right clicking items from categories."));
mFavoritesLabel->setAlignment(Qt::AlignCenter);
mFavoritesLabel->setWordWrap(true);
appLayout->addWidget(mFavoritesLabel);
Expand Down Expand Up @@ -396,7 +396,6 @@ void LXQtFancyMenuWindow::onAppViewCustomMenu(const QPoint& p)

void LXQtFancyMenuWindow::setCurrentCategory(int cat)
{

QModelIndex idx = mCategoryModel->index(cat, 0);
mCategoryView->setCurrentIndex(idx);
mCategoryView->selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect);
Expand Down

0 comments on commit 8be78b4

Please sign in to comment.