mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03: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,8 @@
|
||||
|
||||
#include <qpushbutton.h>
|
||||
#include <qlabel.h>
|
||||
//Added by qt3to4:
|
||||
#include <QCloseEvent>
|
||||
#include <rddb.h>
|
||||
#include <qdatetime.h>
|
||||
|
||||
@@ -53,16 +55,16 @@ RDListGroups::RDListGroups(QString *groupname,const QString &username,
|
||||
//
|
||||
// Cart List
|
||||
//
|
||||
group_group_list=new QListView(this,"group_group_list");
|
||||
group_group_list->setSelectionMode(QListView::Single);
|
||||
group_group_list=new Q3ListView(this,"group_group_list");
|
||||
group_group_list->setSelectionMode(Q3ListView::Single);
|
||||
group_group_list->setGeometry(10,10,
|
||||
sizeHint().width()-20,sizeHint().height()-80);
|
||||
group_group_list->setAllColumnsShowFocus(true);
|
||||
group_group_list->setItemMargin(5);
|
||||
connect(group_group_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)));
|
||||
group_group_list->addColumn(tr("NAME"));
|
||||
group_group_list->setColumnAlignment(0,Qt::AlignHCenter);
|
||||
group_group_list->addColumn(tr("DESCRIPTION"));
|
||||
@@ -109,7 +111,7 @@ QSizePolicy RDListGroups::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
void RDListGroups::doubleClickedData(QListViewItem *item,const QPoint &pt,
|
||||
void RDListGroups::doubleClickedData(Q3ListViewItem *item,const QPoint &pt,
|
||||
int col)
|
||||
{
|
||||
okData();
|
||||
@@ -118,7 +120,7 @@ void RDListGroups::doubleClickedData(QListViewItem *item,const QPoint &pt,
|
||||
|
||||
void RDListGroups::okData()
|
||||
{
|
||||
QListViewItem *item=group_group_list->selectedItem();
|
||||
Q3ListViewItem *item=group_group_list->selectedItem();
|
||||
if(item==NULL) {
|
||||
return;
|
||||
}
|
||||
@@ -143,8 +145,8 @@ void RDListGroups::BuildGroupList(const QString &username)
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
QListViewItem *item=NULL;
|
||||
QListViewItem *cur_item=NULL;
|
||||
Q3ListViewItem *item=NULL;
|
||||
Q3ListViewItem *cur_item=NULL;
|
||||
|
||||
group_group_list->clear();
|
||||
sql=QString("select ")+
|
||||
@@ -155,7 +157,7 @@ void RDListGroups::BuildGroupList(const QString &username)
|
||||
"USER_NAME=\""+RDEscapeString(username)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
item=new QListViewItem(group_group_list);
|
||||
item=new Q3ListViewItem(group_group_list);
|
||||
item->setText(0,q->value(0).toString());
|
||||
item->setText(1,q->value(1).toString());
|
||||
if(q->value(0).toString()==*group_name) {
|
||||
|
Reference in New Issue
Block a user