Commit a189727e authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

krazy fixes

svn path=/trunk/KDE/kdegraphics/gwenview/; revision=957567
parent 9a066a69
......@@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
// Self
#include "startpage.moc"
#include "config-gwenview.h"
#include <config-gwenview.h>
// Qt
#include <QListView>
......
......@@ -72,7 +72,7 @@ struct CropWidgetPrivate : public Ui_CropWidget {
double cropRatio() const {
const QStringList lst = ratioComboBox->currentText().split(":");
const QStringList lst = ratioComboBox->currentText().split(':');
if (lst.size() != 2) {
return 0;
}
......@@ -288,7 +288,7 @@ void CropWidget::slotRatioComboBoxEditTextChanged() {
void CropWidget::slotRatioComboBoxActivated() {
// If the ratioComboBox contains text like this: "w:h (foo bar)", change it
// to "w:h" only, so that it's easier to edit for the user.
QStringList lst = d->ratioComboBox->currentText().split(" ");
QStringList lst = d->ratioComboBox->currentText().split(' ');
if (lst.size() > 1) {
SignalBlocker blocker(d->ratioComboBox);
d->ratioComboBox->setEditText(lst[0]);
......
......@@ -35,10 +35,10 @@
**
****************************************************************************/
#include <QtGui>
#include "flowlayout.h"
#include <QLayout>
FlowLayout::FlowLayout(QWidget *parent, int margin, int spacing)
: QLayout(parent)
{
......
......@@ -47,7 +47,7 @@
class GWENVIEWLIB_EXPORT FlowLayout : public QLayout
{
public:
FlowLayout(QWidget *parent, int margin = 0, int spacing = -1);
explicit FlowLayout(QWidget *parent, int margin = 0, int spacing = -1);
FlowLayout(int spacing = -1);
~FlowLayout();
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
<kcfg>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
<kcfgfile name="gwenviewrc"/>
<include>lib/sorting.h</include>
<include>lib/imageview.h</include>
......
......@@ -349,11 +349,11 @@ void ImageMetaInfoModel::setExiv2Image(const Exiv2::Image* image) {
void ImageMetaInfoModel::getInfoForKey(const QString& key, QString* label, QString* value) const {
MetaInfoGroup* group;
if (key.startsWith("General")) {
if (key.startsWith(QLatin1String("General"))) {
group = d->mMetaInfoGroupVector[GeneralGroup];
} else if (key.startsWith("Exif")) {
} else if (key.startsWith(QLatin1String("Exif"))) {
group = d->mMetaInfoGroupVector[ExifGroup];
} else if (key.startsWith("Iptc")) {
} else if (key.startsWith(QLatin1String("Iptc"))) {
group = d->mMetaInfoGroupVector[IptcGroup];
} else {
kWarning() << "Unknown metainfo key" << key;
......
......@@ -130,7 +130,7 @@ QString urlMimeTypeByContent(const KUrl& url) {
Kind mimeTypeKind(const QString& mimeType) {
if (mimeType.startsWith("inode/directory")) {
if (mimeType.startsWith(QLatin1String("inode/directory"))) {
return KIND_DIR;
}
if (ArchiveUtils::mimeTypes().contains(mimeType)) {
......@@ -142,7 +142,7 @@ Kind mimeTypeKind(const QString& mimeType) {
if (svgImageMimeTypes().contains(mimeType)) {
return KIND_SVG_IMAGE;
}
if (mimeType.startsWith("video/")) {
if (mimeType.startsWith(QLatin1String("video/"))) {
return KIND_VIDEO;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment