mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
* Added captioning to the 'Select Cart' dialog.
This commit is contained in:
@@ -45,9 +45,11 @@
|
||||
#include "../icons/rml5.xpm"
|
||||
|
||||
RDCartDialog::RDCartDialog(QString *filter,QString *group,QString *schedcode,
|
||||
QWidget *parent)
|
||||
const QString &caption,QWidget *parent)
|
||||
: RDDialog(parent)
|
||||
{
|
||||
cart_caption=caption;
|
||||
|
||||
//
|
||||
// Fix the Window Size
|
||||
//
|
||||
@@ -75,7 +77,7 @@ RDCartDialog::RDCartDialog(QString *filter,QString *group,QString *schedcode,
|
||||
cart_import_path=RDGetHomeDir();
|
||||
cart_import_file_filter=RD_AUDIO_FILE_FILTER;
|
||||
|
||||
setWindowTitle(tr("Select Cart"));
|
||||
setWindowTitle(caption+" - "+tr("Select Cart"));
|
||||
|
||||
//
|
||||
// Create Icons
|
||||
@@ -514,7 +516,9 @@ void RDCartDialog::loadFileData()
|
||||
RDWaveData wavedata;
|
||||
QString err_msg;
|
||||
|
||||
filename=QFileDialog::getOpenFileName(this,"Caption",cart_import_path,
|
||||
filename=QFileDialog::getOpenFileName(this,cart_caption+" - "+
|
||||
tr("Open Audio File"),
|
||||
cart_import_path,
|
||||
cart_import_file_filter);
|
||||
if(!filename.isEmpty()) {
|
||||
cart_import_path=RDGetPathPart(filename);
|
||||
|
||||
Reference in New Issue
Block a user