mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'rdadmin/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Edit a Rivendell Endpoint
|
||||
//
|
||||
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -165,8 +165,8 @@ void EditEndpoint::okData()
|
||||
sql=QString("update ")+edit_table+" set "+
|
||||
"`NAME`='"+RDEscapeString(edit_endpoint_edit->text())+"',"+
|
||||
QString::asprintf("`ENGINE_NUM`=%d,",edit_enginenum_edit->text().toInt())+
|
||||
QString().
|
||||
sprintf("`DEVICE_NUM`=%d ",edit_devicenum_edit->text().toInt(NULL,16))+
|
||||
QString::asprintf("`DEVICE_NUM`=%d ",edit_devicenum_edit->text().
|
||||
toInt(NULL,16))+
|
||||
"where "+
|
||||
QString::asprintf("`ID`=%d",edit_endpoint_id);
|
||||
RDSqlQuery::apply(sql);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// View a pixmap image and modify its metadata
|
||||
//
|
||||
// (C) Copyright 2020-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2020-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -22,8 +22,9 @@
|
||||
#include <rdfeed.h>
|
||||
#include <rdescape_string.h>
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qdesktopwidget.h>
|
||||
#include <QApplication>
|
||||
#include <QGuiApplication>
|
||||
#include <QScreen>
|
||||
|
||||
#include "edit_image.h"
|
||||
|
||||
@@ -212,9 +213,7 @@ QSize EditImage::FittedSize(const QSize &img_size) const
|
||||
|
||||
QSize EditImage::MaxFriendlyImageSize() const
|
||||
{
|
||||
QDesktopWidget *dt=QApplication::desktop();
|
||||
QSize dsize(dt->screenGeometry(dt->screenNumber(this)).size());
|
||||
|
||||
QSize dsize=QGuiApplication::screens().at(0)->size();
|
||||
return QSize(dsize.width()-EDIT_IMAGE_WIDTH_OFFSET,
|
||||
dsize.height()-EDIT_IMAGE_HEIGHT_OFFSET-100);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Manage a collection of pixmap images
|
||||
//
|
||||
// (C) Copyright 2020-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2020-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -120,7 +120,7 @@ void ListImages::addData()
|
||||
//
|
||||
// Upload the image
|
||||
//
|
||||
f0=filename.split(".",QString::SkipEmptyParts);
|
||||
f0=filename.split(".",Qt::SkipEmptyParts);
|
||||
if(!list_feed->postImage(img_id)) {
|
||||
QMessageBox::warning(this,"RDAdmin - "+tr("Upload Error"),
|
||||
tr("Image upload failed!")+"\n"+
|
||||
@@ -142,7 +142,7 @@ void ListImages::addData()
|
||||
//
|
||||
// Save import path
|
||||
//
|
||||
f0=filename.split("/",QString::SkipEmptyParts);
|
||||
f0=filename.split("/",Qt::SkipEmptyParts);
|
||||
f0.removeLast();
|
||||
list_file_dir=f0.join("/");
|
||||
}
|
||||
|
Reference in New Issue
Block a user