| Summary: | JJ: Font pre-view screen should have scrolling | ||
|---|---|---|---|
| Product: | [Applications] kfontview | Reporter: | Parameshwara Bhat <peebhat> |
| Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | julborre, nb64367, travneff |
| Priority: | NOR | Keywords: | junior-jobs |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Modified file to fix the issue | ||
|
Description
Parameshwara Bhat
2014-12-27 01:22:12 UTC
[I am a GCI student] I can confirm this problem. Try on all characters to see the gravity of this. Changing this to wishlist, as scrolling is completely absent. Also marking this a Junior Job. Hi
Guys I've toying around the source code of the kfontviewer. I have downloaded the source code using git from git clone git://anongit.kde.org/kde-workspace
Also I found the file FontViewPart.cpp and I this this modification could solve the issue:
QScrollArea *scrolls = new QScrollArea;
scrolls->setWidget(itsPreview);
previewLayout->setMargin(0);
previewLayout->setSpacing(0);
faceLayout->setMargin(0);
faceLayout->setSpacing(KDialog::spacingHint());
controlsLayout->setMargin(0);
previewLayout->setSpacing(0);
itsFrame->setFrameShape(QFrame::NoFrame);
itsFrame->setFocusPolicy(Qt::ClickFocus);
previewFrame->setFrameShape(QFrame::StyledPanel);
previewFrame->setFrameShadow(QFrame::Sunken);
setComponentData(KComponentData(KFI_NAME));
itsPreview=new CFontPreview(previewFrame);
itsPreview->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
itsFaceLabel=new QLabel(i18n("Show Face:"), itsFaceWidget);
itsFaceSelector=new KIntNumInput(1, itsFaceWidget);
itsFaceSelector->setSliderEnabled(false);
itsInstallButton=new QPushButton(i18n("Install..."), controls);
itsInstallButton->setEnabled(false);
previewLayout->addWidget(scrolls);
I don't have tested this on my machine because I'm totally new to KDE development, to C++(knowing a bit of C from my old days on college helps understand at high level what's going on the code..) and finally to KDE module building, Yes, I know, kdesrc-build and all of that, but I really don't know how to compile this kfontviewer module.
I tried loading the source on KDevelop and the build button there doesn't help me(some error about CMake...). I also tried on the command line doing an cmake CMakeLists.txt
-- Configuring done
-- Generating done
-- Build files have been written to: PATH_TO_MY_DIRS...
From there I don't know how much I can do
If there's some link of how build, compile and test the changes I made to the source, and preferably for Ubuntu/Mint, I would appreciate it.
Thank you and hoping someone can point me on the right direction so this bug could be closed.
Created attachment 93993 [details]
Modified file to fix the issue
Please note the part about the ScrollBar
Please create a diff so that we can see the changes. Ideally, post them to https://git.reviewboard.kde.org/ If you need help, ask on #kde-devel IRC channel. Still actual. No possibility to view that characters which don't fit Font Viewer's window. Font Viewer: 6.2.4 KDE Frameworks: 6.9.0 Qt: Using 6.8.1 and built against 6.8.1 Fedora Linux 41 (Workstation Edition) (Xcb) |