| Summary: | Preview in Theme manager should not be scaled | ||
|---|---|---|---|
| Product: | [Unmaintained] kcontrol | Reporter: | Malte S. Stretz <mss> |
| Component: | kthememanager | Assignee: | Lukáš Tinkl <lukas> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Malte S. Stretz
2005-03-04 01:18:56 UTC
I agree. But as it seems to be added intentionally (kthememanager.cpp#392) let's hear what Lukas says against removing the scaling. CVS commit by binner:
Don't scale up preview (#100781)
BUG:100781
M +3 -1 kthememanager.cpp 1.21.2.1
--- kdebase/kcontrol/kthememanager/kthememanager.cpp #1.21:1.21.2.1
@@ -390,4 +390,6 @@ void kthememanager::updatePreview( const
kdDebug() << "Preview is in file: " << pixFile << endl;
QImage preview( pixFile, "PNG" );
+ if (preview.width()>dlg->lbPreview->contentsRect().width() ||
+ preview.height()>dlg->lbPreview->contentsRect().height() )
preview = preview.smoothScale( dlg->lbPreview->contentsRect().size(), QImage::ScaleMin );
QPixmap pix;
|