mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-04-24 23:13:37 +02:00
2018-08-07 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'pam_rd' plug-in. * Removed rdchunk(1). * Upgraded Qt3 to Qt4.
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
|
||||
#include <qpushbutton.h>
|
||||
#include <qdatetime.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
#include <QCloseEvent>
|
||||
|
||||
#include "rdapplication.h"
|
||||
#include "rddb.h"
|
||||
@@ -58,14 +61,14 @@ RDListLogs::RDListLogs(QString *logname,RDLogFilter::FilterMode mode,
|
||||
//
|
||||
// Log List
|
||||
//
|
||||
list_log_list=new QListView(this);
|
||||
list_log_list=new Q3ListView(this);
|
||||
list_log_list->setAllColumnsShowFocus(true);
|
||||
list_log_list->setItemMargin(5);
|
||||
list_log_list->setSelectionMode(QListView::Single);
|
||||
list_log_list->setSelectionMode(Q3ListView::Single);
|
||||
connect(list_log_list,
|
||||
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
|
||||
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
|
||||
this,
|
||||
SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
|
||||
SLOT(doubleClickedData(Q3ListViewItem *,const QPoint &,int)));
|
||||
list_log_list->addColumn(tr("NAME"));
|
||||
list_log_list->setColumnAlignment(0,Qt::AlignLeft);
|
||||
list_log_list->addColumn(tr("DESCRIPTION"));
|
||||
@@ -118,7 +121,7 @@ void RDListLogs::filterChangedData(const QString &where_sql)
|
||||
}
|
||||
|
||||
|
||||
void RDListLogs::doubleClickedData(QListViewItem *,const QPoint &,int)
|
||||
void RDListLogs::doubleClickedData(Q3ListViewItem *,const QPoint &,int)
|
||||
{
|
||||
okButtonData();
|
||||
}
|
||||
@@ -126,7 +129,7 @@ void RDListLogs::doubleClickedData(QListViewItem *,const QPoint &,int)
|
||||
|
||||
void RDListLogs::okButtonData()
|
||||
{
|
||||
QListViewItem *item=list_log_list->selectedItem();
|
||||
Q3ListViewItem *item=list_log_list->selectedItem();
|
||||
if(item==NULL) {
|
||||
return;
|
||||
}
|
||||
@@ -161,8 +164,8 @@ void RDListLogs::RefreshList()
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
QString sql;
|
||||
QListViewItem *l;
|
||||
QListViewItem *view_item=NULL;
|
||||
Q3ListViewItem *l;
|
||||
Q3ListViewItem *view_item=NULL;
|
||||
QDate current_date=QDate::currentDate();
|
||||
|
||||
list_log_list->clear();
|
||||
@@ -178,7 +181,7 @@ void RDListLogs::RefreshList()
|
||||
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
l=new QListViewItem(list_log_list);
|
||||
l=new Q3ListViewItem(list_log_list);
|
||||
l->setText(0,q->value(0).toString());
|
||||
l->setText(1,q->value(1).toString());
|
||||
l->setText(2,q->value(2).toString());
|
||||
|
||||
Reference in New Issue
Block a user