Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocumentSaveOptions.cpp
1 | | ||||
---|---|---|---|---|---|
2 | /* | 1 | /* | ||
3 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | 2 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | ||
4 | All rights reserved. | 3 | All rights reserved. | ||
5 | 4 | | |||
6 | Redistribution and use in source and binary forms, with or without | 5 | Redistribution and use in source and binary forms, with or without | ||
7 | modification, are permitted provided that the following conditions | 6 | modification, are permitted provided that the following conditions | ||
8 | are met: | 7 | are met: | ||
9 | 8 | | |||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 69 | { | |||
74 | d->m_quality = rhs.quality (); | 73 | d->m_quality = rhs.quality (); | ||
75 | } | 74 | } | ||
76 | 75 | | |||
77 | //--------------------------------------------------------------------- | 76 | //--------------------------------------------------------------------- | ||
78 | 77 | | |||
79 | kpDocumentSaveOptions::kpDocumentSaveOptions (QString mimeType, int colorDepth, bool dither, int quality) | 78 | kpDocumentSaveOptions::kpDocumentSaveOptions (QString mimeType, int colorDepth, bool dither, int quality) | ||
80 | : d (new kpDocumentSaveOptionsPrivate ()) | 79 | : d (new kpDocumentSaveOptionsPrivate ()) | ||
81 | { | 80 | { | ||
82 | d->m_mimeType = mimeType; | 81 | d->m_mimeType = std::move(mimeType); | ||
83 | d->m_colorDepth = colorDepth; | 82 | d->m_colorDepth = colorDepth; | ||
84 | d->m_dither = dither; | 83 | d->m_dither = dither; | ||
85 | d->m_quality = quality; | 84 | d->m_quality = quality; | ||
86 | } | 85 | } | ||
87 | 86 | | |||
88 | //--------------------------------------------------------------------- | 87 | //--------------------------------------------------------------------- | ||
89 | 88 | | |||
90 | kpDocumentSaveOptions::~kpDocumentSaveOptions () | 89 | kpDocumentSaveOptions::~kpDocumentSaveOptions () | ||
▲ Show 20 Lines • Show All 532 Lines • Show Last 20 Lines |