mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-26 14:41:16 +01:00
2025-04-30 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up numerous compiler warnings. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// RDTableView widget with consistent Rivendell defaults
|
||||
//
|
||||
// (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2021-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
|
||||
@@ -70,7 +70,7 @@ void ClockListView::mousePressEvent(QMouseEvent *e)
|
||||
if(e->button()==Qt::RightButton) {
|
||||
d_mouse_row=indexAt(e->pos()).row();
|
||||
if((d_mouse_row>=0)&&(d_mouse_row<model()->rowCount())) {
|
||||
d_mouse_menu->popup(e->globalPos());
|
||||
d_mouse_menu->popup(e->globalPosition().toPoint());
|
||||
}
|
||||
else {
|
||||
d_mouse_row=-1;
|
||||
|
||||
@@ -408,13 +408,12 @@ void EditClock::saveAsData()
|
||||
QString old_name=edit_name;
|
||||
if(edit_modified) {
|
||||
switch(QMessageBox::question(this,tr("Clock Modified"),
|
||||
tr("The clock has been modified.\nDo you want to save?"),QMessageBox::Yes,QMessageBox::No,QMessageBox::Cancel)) {
|
||||
tr("The clock has been modified.\nDo you want to save?"),QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel)) {
|
||||
case QMessageBox::Yes:
|
||||
Save();
|
||||
break;
|
||||
|
||||
case QMessageBox::Cancel:
|
||||
case QMessageBox::NoButton:
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
@@ -495,18 +494,15 @@ void EditClock::cancelData()
|
||||
{
|
||||
if(edit_modified) {
|
||||
switch(QMessageBox::question(this,tr("Clock Modified"),
|
||||
tr("The clock has been modified.\nDo you want to save?"),QMessageBox::Yes,QMessageBox::No,QMessageBox::Cancel)) {
|
||||
tr("The clock has been modified.\nDo you want to save?"),QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel)) {
|
||||
case QMessageBox::Yes:
|
||||
Save();
|
||||
done(0);
|
||||
break;
|
||||
|
||||
case QMessageBox::No:
|
||||
default:
|
||||
done(-1);
|
||||
break;
|
||||
|
||||
case QMessageBox::NoButton:
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// RDTableView widget with consistent Rivendell defaults
|
||||
//
|
||||
// (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2021-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
|
||||
@@ -230,7 +230,7 @@ void ImportCartsView::dropEvent(QDropEvent *e)
|
||||
{
|
||||
RDLogLine ll;
|
||||
int line=-1;
|
||||
int y_pos=e->pos().y();
|
||||
int y_pos=e->position().y();
|
||||
|
||||
if(RDCartDrag::decode(e->mimeData(),&ll)) {
|
||||
line=rowAt(y_pos);
|
||||
@@ -244,7 +244,7 @@ void ImportCartsView::mousePressEvent(QMouseEvent *e)
|
||||
if(e->button()==Qt::RightButton) {
|
||||
d_mouse_row=indexAt(e->pos()).row();
|
||||
if((d_mouse_row>=0)&&(d_mouse_row<model()->rowCount())) {
|
||||
d_mouse_menu->popup(e->globalPos());
|
||||
d_mouse_menu->popup(e->globalPosition().toPoint());
|
||||
}
|
||||
else {
|
||||
d_mouse_row=-1;
|
||||
|
||||
Reference in New Issue
Block a user