Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added hint for cursor settings under wayland #1009

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions liblxqt-config-cursor/selectwnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ SelectWnd::SelectWnd(LXQt::Settings* settings, QWidget *parent)
{
ui->setupUi(this);
ui->warningLabel->hide();
if (QGuiApplication::platformName() == QStringLiteral("wayland"))
{
ui->waylandLabel->setText(tr("<br>Note</br>: Under Wayland, cursor theme and size are configured by the compositor instead."));
}
ui->preview->setCurrentCursorSize(getDefaultCursorSize());
ui->preview->setCursorSize(ui->preview->getCurrentCursorSize());

Expand Down
30 changes: 28 additions & 2 deletions liblxqt-config-cursor/selectwnd.ui
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,23 @@
</property>
</widget>
</item>
<item row="1" column="0" colspan="6">
<item row="1" column="0" colspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="6">
<widget class="WarningLabel" name="warningLabel" native="true"/>
</item>
<item row="2" column="0" colspan="6">
Expand All @@ -43,7 +59,7 @@
</property>
</widget>
</item>
<item row="3" column="0" colspan="6">
<item row="4" column="0" colspan="6">
<widget class="QListView" name="lbThemes">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
Expand Down Expand Up @@ -112,6 +128,16 @@
</property>
</widget>
</item>
<item row="1" column="0" colspan="5">
<widget class="QLabel" name="waylandLabel">
<property name="text">
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
Expand Down