mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02: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:
@@ -1082,7 +1082,7 @@ void EditLog::cancelData()
|
||||
switch(QMessageBox::question(this,
|
||||
tr("RDLogEdit"),
|
||||
tr("The log has been modified.\nDo you want to save your changes?"),
|
||||
QMessageBox::Yes,QMessageBox::No,
|
||||
QMessageBox::Yes|QMessageBox::No|
|
||||
QMessageBox::Cancel)) {
|
||||
case QMessageBox::Yes:
|
||||
if(!edit_log_model->allGroupsValid()) {
|
||||
@@ -1093,8 +1093,7 @@ void EditLog::cancelData()
|
||||
SaveLog();
|
||||
break;
|
||||
|
||||
case QMessageBox::Cancel:
|
||||
case QMessageBox::NoButton:
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// TableView widget for RDLogEdit
|
||||
//
|
||||
// (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
|
||||
@@ -70,7 +70,7 @@ void LogTableView::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);
|
||||
@@ -84,7 +84,7 @@ void LogTableView::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()-1))) {
|
||||
d_mouse_menu->popup(e->globalPos());
|
||||
d_mouse_menu->popup(e->globalPosition().toPoint());
|
||||
}
|
||||
else {
|
||||
d_mouse_row=-1;
|
||||
|
@@ -340,7 +340,7 @@ void MainWidget::deleteData()
|
||||
else {
|
||||
if(QMessageBox::question(this,"RDLogEdit - "+tr("Delete Log"),
|
||||
tr("Are you sure you want to delete these")+
|
||||
QString::asprintf(" %d ",rows.size())+
|
||||
QString::asprintf(" %lld ",rows.size())+
|
||||
tr("logs?"),QMessageBox::Yes,QMessageBox::No)!=
|
||||
QMessageBox::Yes) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user