mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
2022-09-27 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDLogFilter::filterServiceName()' and 'RDLogFilter::filterText()' methods. * Modified rdlogedit(1) when creating a new log to default the 'Service' dropdown in the 'Add Log' dialog to the currently selected service. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -122,6 +122,9 @@ RDAddLog::RDAddLog(QString *logname,QString *svcname,
|
||||
add_service_box->
|
||||
insertItem(add_service_box->count(),rda->iconEngine()->serviceIcon(),
|
||||
q->value(0).toString());
|
||||
if(((*log_svc)!=tr("ALL"))&&(*log_svc==q->value(0).toString())) {
|
||||
add_service_box->setCurrentIndex(add_service_box->count()-1);
|
||||
}
|
||||
}
|
||||
add_name_edit->setText(*logname);
|
||||
}
|
||||
|
||||
@@ -123,6 +123,18 @@ QSizePolicy RDLogFilter::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
QString RDLogFilter::filterServiceName() const
|
||||
{
|
||||
return filter_service_box->currentText();
|
||||
}
|
||||
|
||||
|
||||
QString RDLogFilter::filterText() const
|
||||
{
|
||||
return filter_filter_edit->text();
|
||||
}
|
||||
|
||||
|
||||
QString RDLogFilter::whereSql() const
|
||||
{
|
||||
QString sql="";
|
||||
|
||||
@@ -39,6 +39,8 @@ class RDLogFilter : public QWidget
|
||||
~RDLogFilter();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
QString filterServiceName() const;
|
||||
QString filterText() const;
|
||||
QString whereSql() const;
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user