mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
56cd1e5c37
commit
32e9d58d95
5 changed files with 5 additions and 5 deletions
|
@ -457,7 +457,10 @@ void KColorCm::variesClicked()
|
|||
// find which button was changed
|
||||
const int row = sender()->objectName().toInt();
|
||||
|
||||
QColor color = QColorDialog::getColor(color, this, KDialog::makeStandardCaption(i18n("Select Color"), this));
|
||||
QColor color = QColorDialog::getColor(
|
||||
QColor(Qt::white),
|
||||
this, KDialog::makeStandardCaption(i18n("Select Color"), this)
|
||||
);
|
||||
if(color.isValid())
|
||||
{
|
||||
changeColor(row, color);
|
||||
|
|
|
@ -149,7 +149,7 @@ void DigitalClockApplet::createConfigurationInterface(KConfigDialog *parent)
|
|||
|
||||
void DigitalClockApplet::constraintsEvent(Plasma::Constraints constraints)
|
||||
{
|
||||
if (constraints && Plasma::SizeConstraint || constraints & Plasma::FormFactorConstraint) {
|
||||
if (constraints & Plasma::SizeConstraint || constraints & Plasma::FormFactorConstraint) {
|
||||
switch (formFactor()) {
|
||||
// panel
|
||||
case Plasma::FormFactor::Horizontal: {
|
||||
|
|
|
@ -1156,7 +1156,6 @@ void LauncherApplications::slotCheckBookmarks()
|
|||
QStringList bookmarkurls;
|
||||
KBookmarkGroup bookmarkgroup = m_bookmarkmanager->root();
|
||||
KBookmark bookmark = bookmarkgroup.first();
|
||||
bool isinfavorites = false;
|
||||
while (!bookmark.isNull()) {
|
||||
bookmarkurls.append(bookmark.url().url());
|
||||
bookmark = bookmarkgroup.next(bookmark);
|
||||
|
|
|
@ -41,7 +41,6 @@ static const int s_monitorsid = -1;
|
|||
static const int s_update = 1; // 1 sec
|
||||
static const QSizeF s_minimumframesize = QSizeF(150, 90);
|
||||
static const QSizeF s_minimummetersize = QSizeF(90, 90);
|
||||
static const int s_textoffset = 10;
|
||||
|
||||
enum KSensorType {
|
||||
UnknownSensor = 0,
|
||||
|
|
|
@ -175,7 +175,6 @@ QSize BackgroundListModel::bestSize(Plasma::Package *package) const
|
|||
if (m_structureParent) {
|
||||
QModelIndex index = indexOf(image);
|
||||
if (index.isValid()) {
|
||||
Plasma::Package *package = m_packages.at(index.row());
|
||||
m_structureParent.data()->updateScreenshot(index);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue