TQt4 port kerry

This enables compilation under both Qt3 and Qt4


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kerry@1239288 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 1a52047ec5
commit 09ec338543

@ -27,7 +27,7 @@ kerry_la_SOURCES = main.cpp beaglesearch.cpp kerryapp.cpp searchdlg.cpp searchdl
hitwidget_layout.ui hitwidget.cpp kwidgetlistbox.cpp \
dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp
kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS)
kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) $(LIB_QT)
kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC)
autostartdir = $(datadir)/autostart

@ -22,7 +22,7 @@
#include <kmessagebox.h>
#include <kdebug.h>
#include <klocale.h>
#include <qapplication.h>
#include <tqapplication.h>
#include <kurl.h>
struct PropertyInfo
@ -169,8 +169,8 @@ static const HitFlavorInfo hitflavorinfos[] =
{ 0, 0, 0, 0}
};
BeagleSearch::BeagleSearch(int id, QObject *parent, QString term)
: id (id), kill_me (false), parent (parent)
BeagleSearch::BeagleSearch(int id, TQObject *tqparent, TQString term)
: id (id), kill_me (false), tqparent (tqparent)
{
query = beagle_query_new ();
beagle_query_set_max_hits(query, 100);
@ -178,7 +178,7 @@ BeagleSearch::BeagleSearch(int id, QObject *parent, QString term)
client = beagle_client_new (NULL);
client_mutex = new QMutex ();
client_mutex = new TQMutex ();
main_loop = g_main_loop_new (NULL, FALSE);
}
@ -210,9 +210,9 @@ void BeagleSearch::run()
}
kdDebug() << "!!! run ending" << endl;
QCustomEvent *ev;
ev = new QCustomEvent (KILLME, this);
qApp->postEvent(parent, ev);
TQCustomEvent *ev;
ev = new TQCustomEvent (KILLME, this);
tqApp->postEvent(tqparent, ev);
}
void BeagleSearch::stopClient()
@ -254,26 +254,26 @@ BeagleSearch::~BeagleSearch()
delete client_mutex;
}
QString *BeagleSearch::get_uri_from_file_hit(BeagleHit *hit)
TQString *BeagleSearch::get_uri_from_file_hit(BeagleHit *hit)
{
return new QString (beagle_hit_get_uri (hit));
return new TQString (beagle_hit_get_uri (hit));
}
QString *BeagleSearch::get_parent_uri_from_file_hit(BeagleHit *hit)
TQString *BeagleSearch::get_parent_uri_from_file_hit(BeagleHit *hit)
{
return new QString (beagle_hit_get_parent_uri (hit));
return new TQString (beagle_hit_get_parent_uri (hit));
}
QString *BeagleSearch::get_source_from_file_hit(BeagleHit *hit)
TQString *BeagleSearch::get_source_from_file_hit(BeagleHit *hit)
{
return new QString (beagle_hit_get_source (hit));
return new TQString (beagle_hit_get_source (hit));
}
QString *BeagleSearch::get_uri_from_feed_hit(BeagleHit *hit)
TQString *BeagleSearch::get_uri_from_feed_hit(BeagleHit *hit)
{
const char *result;
beagle_hit_get_one_property (hit, "fixme:itemuri", &result);
return new QString (result);
return new TQString (result);
}
void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *response, BeagleSearch *client)
@ -305,21 +305,21 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
beagle_result_struct *result = new beagle_result_struct;
BeagleHit *hit = BEAGLE_HIT (l->data);
result->hit_type = QString(beagle_hit_get_type (BEAGLE_HIT (l->data)));
result->hit_type = TQString(beagle_hit_get_type (BEAGLE_HIT (l->data)));
const char *_mime_type = beagle_hit_get_mime_type(BEAGLE_HIT (l->data));
const char *mime_type = (_mime_type == NULL ? "-" : _mime_type);
if (result->hit_type=="MailMessage" && QString(mime_type)!="message/rfc822") {
if (result->hit_type=="MailMessage" && TQString(mime_type)!="message/rfc822") {
delete result;
continue;
}
result->mime_type = new QString(mime_type);
result->mime_type = new TQString(mime_type);
result->score = beagle_hit_get_score(BEAGLE_HIT (l->data));
result->uri = get_uri_from_file_hit (BEAGLE_HIT (l->data));
result->tilegroup = Unknown;
result->parent_uri = get_parent_uri_from_file_hit (BEAGLE_HIT (l->data));
result->tqparent_uri = get_parent_uri_from_file_hit (BEAGLE_HIT (l->data));
result->source = get_source_from_file_hit (BEAGLE_HIT (l->data));
result->client_id = client->id;
#if 0
@ -333,7 +333,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
const char* value = beagle_property_get_value( property );
kdDebug() << " \"" << key << "\" = \"" << value << "\"" << endl;
}
kdDebug() << "parent_uri = " << *(result->parent_uri) << endl;
kdDebug() << "tqparent_uri = " << *(result->tqparent_uri) << endl;
kdDebug() << "source = " << *(result->source) << endl;
kdDebug() << "tilegroup = " << result->tilegroup << endl;
#endif
@ -354,11 +354,11 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
const char *property = (char*)properties->data;
if (property) {
if (propertiesInfo[i].label) {
QString propertystr = i18n(propertiesInfo[i].label).arg(property);
TQString propertystr = i18n(propertiesInfo[i].label).tqarg(property);
result->properties.append(propertystr);
}
else
result->properties.append(QString(propertiesInfo[i].identifier)+'='+property);
result->properties.append(TQString(propertiesInfo[i].identifier)+'='+property);
}
}
}
@ -374,7 +374,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
result->snippet = 0;
}
else
result->snippet = new QString( beagle_snippet_response_get_snippet( BEAGLE_SNIPPET_RESPONSE(response)) );
result->snippet = new TQString( beagle_snippet_response_get_snippet( BEAGLE_SNIPPET_RESPONSE(response)) );
if (response)
g_object_unref(response);
@ -401,8 +401,8 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
}
client->client_mutex->unlock ();
QCustomEvent *ev = new QCustomEvent (RESULTFOUND, results);
qApp->postEvent (client->parent, ev);
TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results);
tqApp->postEvent (client->tqparent, ev);
}
void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client)
@ -430,12 +430,12 @@ void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtrac
g_print ("removed: %s\n", uri);
vanished->list.append(QString(uri));
vanished->list.append(TQString(uri));
uris = uris->next;
}
QCustomEvent *ev = new QCustomEvent (RESULTGONE, vanished);
qApp->postEvent (client->parent, ev);
TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
tqApp->postEvent (client->tqparent, ev);
}
void BeagleSearch::finished_cb (BeagleQuery */*query*/,
@ -455,6 +455,6 @@ void BeagleSearch::finished_cb (BeagleQuery */*query*/,
g_main_loop_quit (client->main_loop);
QCustomEvent *ev = new QCustomEvent (SEARCHOVER, client);
qApp->postEvent (client->parent, ev);
TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
tqApp->postEvent (client->tqparent, ev);
}

@ -21,11 +21,11 @@
#ifndef BEAGLESEARCH_H
#define BEAGLESEARCH_H
#include <qobject.h>
#include <qthread.h>
#include <qstringlist.h>
#include <qregexp.h>
#include <qmutex.h>
#include <tqobject.h>
#include <tqthread.h>
#include <tqstringlist.h>
#include <tqregexp.h>
#include <tqmutex.h>
extern "C" {
#include <glib.h>
@ -33,15 +33,15 @@ extern "C" {
#include <beagle/beagle-query-part-property.h>
}
#define RESULTFOUND (QEvent::Type)1001 /* QEvent::User + 1 */
#define RESULTGONE (QEvent::Type)1002 /* QEvent::User + 2 */
#define SEARCHOVER (QEvent::Type)1003 /* QEvent::User + 3 */
#define KILLME (QEvent::Type)1004 /* QEvent::User + 4 */
#define RESULTFOUND (TQEvent::Type)1001 /* TQEvent::User + 1 */
#define RESULTGONE (TQEvent::Type)1002 /* TQEvent::User + 2 */
#define SEARCHOVER (TQEvent::Type)1003 /* TQEvent::User + 3 */
#define KILLME (TQEvent::Type)1004 /* TQEvent::User + 4 */
/**
Interface to beagle-query
*/
class BeagleSearch : public QThread {
class BeagleSearch : public TQThread {
public:
@ -61,13 +61,13 @@ enum TileGroup {
Unknown
};
typedef QValueList<QString> PropertyList;
typedef TQValueList<TQString> PropertyList;
class beagle_result_struct {
public:
beagle_result_struct () {
uri = NULL;
parent_uri = NULL;
tqparent_uri = NULL;
source = NULL;
mime_type = NULL;
snippet = NULL;
@ -77,29 +77,29 @@ public:
~beagle_result_struct () {
delete uri;
delete parent_uri;
delete tqparent_uri;
delete source;
delete mime_type;
delete snippet;
}
QString *uri;
QString *parent_uri;
QString *source;
TQString *uri;
TQString *tqparent_uri;
TQString *source;
PropertyList properties;
QString hit_type;
QString *mime_type;
TQString hit_type;
TQString *mime_type;
time_t last_index_time;
double score;
QString *snippet;
TQString *snippet;
TileGroup tilegroup;
int client_id;
bool show_expanded;
};
typedef QPtrList<beagle_result_struct> BeagleResultList;
typedef TQPtrList<beagle_result_struct> BeagleResultList;
typedef QValueList<QString> VanishedURIList;
typedef TQValueList<TQString> VanishedURIList;
class BeagleVanishedURIList {
public:
@ -113,7 +113,7 @@ public:
VanishedURIList list;
};
BeagleSearch(int id, QObject *parent, QString term);
BeagleSearch(int id, TQObject *tqparent, TQString term);
~BeagleSearch();
virtual void run();
@ -124,18 +124,18 @@ public:
bool kill_me;
private:
QObject *parent;
TQObject *tqparent;
static void hits_added_cb (BeagleQuery *, BeagleHitsAddedResponse *, BeagleSearch* client);
static void hits_subtracted_cb (BeagleQuery *, BeagleHitsSubtractedResponse *, BeagleSearch* client);
static void finished_cb (BeagleQuery *, BeagleFinishedResponse *, BeagleSearch* client);
static QString *get_uri_from_feed_hit (BeagleHit *);
static QString *get_uri_from_file_hit (BeagleHit *);
static QString *get_parent_uri_from_file_hit (BeagleHit *);
static QString *get_source_from_file_hit (BeagleHit *);
static TQString *get_uri_from_feed_hit (BeagleHit *);
static TQString *get_uri_from_file_hit (BeagleHit *);
static TQString *get_parent_uri_from_file_hit (BeagleHit *);
static TQString *get_source_from_file_hit (BeagleHit *);
QMutex *client_mutex;
TQMutex *client_mutex;
BeagleClient *client;
BeagleQuery *query;

@ -28,8 +28,8 @@ class dcopIface : virtual public DCOPObject
k_dcop:
virtual ASYNC showSearchDialog() = 0;
virtual ASYNC search(const QString&) = 0;
virtual ASYNC search(const QString&, const QString&) = 0;
virtual ASYNC search(const TQString&) = 0;
virtual ASYNC search(const TQString&, const TQString&) = 0;
virtual ASYNC configChanged() = 0;
};

@ -23,17 +23,17 @@
#include <kpushbutton.h>
#include <kdebug.h>
#include <kiconloader.h>
#include <qtoolbutton.h>
#include <tqtoolbutton.h>
#include <klocale.h>
#include <kurllabel.h>
#include <kglobalsettings.h>
#include <qlayout.h>
#include <tqlayout.h>
#include <konq_filetip.h>
#include <qscrollview.h>
#include <tqscrollview.h>
HitWidget::HitWidget(QString uri, QString mimetype, KWidgetListbox *parent, const char *name)
: HitWidgetLayout(parent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false),
m_is_collapsible(false), m_icon(QString::null), m_result(0)
HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent, const char *name)
: HitWidgetLayout(tqparent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false),
m_is_collapsible(false), m_icon(TQString()), m_result(0)
{
HitWidgetLayoutLayout->setMargin(4);
toolButton1->setEnabled(false);
@ -42,11 +42,11 @@ HitWidget::HitWidget(QString uri, QString mimetype, KWidgetListbox *parent, cons
setDescriptionText("");
setPropertiesText("");
icon->installEventFilter(this);
pFileTip = new KonqFileTip(parent);
pFileTip = new KonqFileTip(tqparent);
pFileTip->setItem(0L);
qsv=parent;
qsv=tqparent;
connect(toolButton1, SIGNAL(clicked()), SLOT(toggleCollapsed()));
connect(toolButton1, TQT_SIGNAL(clicked()), TQT_SLOT(toggleCollapsed()));
}
HitWidget::~HitWidget()
@ -54,7 +54,7 @@ HitWidget::~HitWidget()
delete pFileTip;
}
void HitWidget::setIcon(const QString name)
void HitWidget::setIcon(const TQString name)
{
m_icon = name;
if (m_collapsed)
@ -99,8 +99,8 @@ void HitWidget::setCollapsed(bool collapsed)
description->setHidden(true);
properties->setHidden(true);
score->setHidden(true);
icon->setMinimumSize( QSize( 64, 16 ) );
icon->setMaximumSize( QSize( 64, 16 ) );
icon->setMinimumSize( TQSize( 64, 16 ) );
icon->setMaximumSize( TQSize( 64, 16 ) );
m_collapsed = collapsed;
}
else {
@ -110,8 +110,8 @@ void HitWidget::setCollapsed(bool collapsed)
description->setHidden(false);
properties->setHidden(false);
score->setHidden(false);
icon->setMinimumSize( QSize( 64, 64 ) );
icon->setMaximumSize( QSize( 64, 64 ) );
icon->setMinimumSize( TQSize( 64, 64 ) );
icon->setMaximumSize( TQSize( 64, 64 ) );
m_collapsed = collapsed;
emit uncollapsed(this);
}
@ -133,48 +133,48 @@ bool HitWidget::isCollapsible() const
return m_is_collapsible;
}
void HitWidget::setDescriptionText(QString text)
void HitWidget::setDescriptionText(TQString text)
{
description->setText(text);
}
void HitWidget::setPropertiesText(QString text)
void HitWidget::setPropertiesText(TQString text)
{
properties->setText(text);
}
void HitWidget::insertHeaderWidget( int index, QWidget * widget)
void HitWidget::insertHeaderWidget( int index, TQWidget * widget)
{
layoutHeader->insertWidget(index,widget);
tqlayoutHeader->insertWidget(index,widget);
}
void HitWidget::insertHitWidget( int index, QWidget * widget)
void HitWidget::insertHitWidget( int index, TQWidget * widget)
{
layoutButton->insertWidget(index,widget);
tqlayoutButton->insertWidget(index,widget);
}
void HitWidget::insertTextWidget( int index, QWidget * widget)
void HitWidget::insertTextWidget( int index, TQWidget * widget)
{
layoutText->insertWidget(index,widget);
tqlayoutText->insertWidget(index,widget);
}
void HitWidget::insertHitSpacing( int index, int size)
{
layoutButton->insertSpacing(index,size);
tqlayoutButton->insertSpacing(index,size);
}
QString HitWidget::uri() const
TQString HitWidget::uri() const
{
return m_uri;
}
void HitWidget::setUri(const QString uri)
void HitWidget::setUri(const TQString uri)
{
pFileTip->setItem(0L);
m_uri = uri;
}
QString HitWidget::mimetype() const
TQString HitWidget::mimetype() const
{
return m_mimetype;
}
@ -198,17 +198,17 @@ void HitWidget::adjustSize()
HitWidgetLayout::adjustSize();
}
bool HitWidget::eventFilter( QObject *obj, QEvent *ev )
bool HitWidget::eventFilter( TQObject *obj, TQEvent *ev )
{
if ( obj == icon && !m_uri.isEmpty() ) {
if ( ev->type() == QEvent::Enter && parent() ) {
if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(icon) && !m_uri.isEmpty() ) {
if ( ev->type() == TQEvent::Enter && tqparent() ) {
pFileTip->setOptions(true, true, 6);
KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown);
QPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos()));
QRect qr(qsv->viewportToContents(viewport),QSize(icon->width()*2,icon->height()));
TQPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos()));
TQRect qr(qsv->viewportToContents(viewport),TQSize(icon->width()*2,icon->height()));
pFileTip->setItem(fileitem,qr,icon->pixmap());
}
else if ( ev->type() == QEvent::Leave )
else if ( ev->type() == TQEvent::Leave )
pFileTip->setItem(0L);
return HitWidgetLayout::eventFilter( obj, ev );
}

@ -24,14 +24,15 @@
#include "kwidgetlistbox.h"
#include "beaglesearch.h"
class QScrollView;
class TQScrollView;
class KonqFileTip;
class HitWidget : public HitWidgetLayout
{
Q_OBJECT
TQ_OBJECT
public:
HitWidget(QString uri, QString mimetype, KWidgetListbox *parent = 0, const char *name = 0);
HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent = 0, const char *name = 0);
~HitWidget();
void setCollapsible(BeagleSearch::beagle_result_struct *result);
@ -42,21 +43,21 @@ class HitWidget : public HitWidgetLayout
int collapsedHeight() const;
void setIcon(QString name);
void setIcon(TQString name);
void setDescriptionText(QString text);
void setPropertiesText(QString text);
void setUri(const QString uri);
QString uri() const;
QString mimetype() const;
void setDescriptionText(TQString text);
void setPropertiesText(TQString text);
void setUri(const TQString uri);
TQString uri() const;
TQString mimetype() const;
void insertHeaderWidget( int index, QWidget * widget);
void insertTextWidget( int index, QWidget * widget);
void insertHitWidget( int index, QWidget * widget);
void insertHeaderWidget( int index, TQWidget * widget);
void insertTextWidget( int index, TQWidget * widget);
void insertHitWidget( int index, TQWidget * widget);
void insertHitSpacing( int index, int size);
virtual void adjustSize();
virtual bool eventFilter(QObject*, QEvent*);
virtual bool eventFilter(TQObject*, TQEvent*);
signals:
void uncollapsed(HitWidget*);
@ -66,10 +67,10 @@ class HitWidget : public HitWidgetLayout
private:
KWidgetListbox* qsv;
QString m_uri, m_mimetype;
TQString m_uri, m_mimetype;
KonqFileTip* pFileTip;
bool m_collapsed, m_is_collapsible;
QString m_icon;
TQString m_icon;
BeagleSearch::beagle_result_struct * m_result;
};

File diff suppressed because one or more lines are too long

@ -21,27 +21,27 @@
#include "backends.h"
#include <qdir.h>
#include <qdom.h>
#include <qfile.h>
#include <qlabel.h>
#include <qlayout.h>
#include <tqdir.h>
#include <tqdom.h>
#include <tqfile.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <kdialog.h>
#include <klocale.h>
KCMBeagleBackends::KCMBeagleBackends(QWidget *parent, const char * )
: KCModule(parent, "kcmbeaglebackends")
KCMBeagleBackends::KCMBeagleBackends(TQWidget *tqparent, const char * )
: KCModule(tqparent, "kcmbeaglebackends")
{
QVBoxLayout* general_layout = new QVBoxLayout( this, KDialog::spacingHint() );
TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
general_layout->addWidget( new QLabel(i18n( "Select which of the available Beagle backends you want to have enabled." ), this) );
general_layout->addWidget( new TQLabel(i18n( "Select which of the available Beagle backends you want to have enabled." ), this) );
listview = new KListView(this);
listview->addColumn(i18n("Backends"));
listview->setResizeMode( QListView::LastColumn );
listview->setResizeMode( TQListView::LastColumn );
listview->setFullWidth( true );
general_layout->addWidget(listview);
connect(listview, SIGNAL(clicked(QListViewItem*)), SLOT(changedValue()));
connect(listview, TQT_SIGNAL(clicked(TQListViewItem*)), TQT_SLOT(changedValue()));
load();
}
@ -65,17 +65,17 @@ void KCMBeagleBackends::load( bool useDefaults )
listview->clear();
KProcess *proc = new KProcess;
connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(gotAvailableBackends(KProcess *, char *, int)));
connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(gotAvailableBackends(KProcess *, char *, int)));
*proc << "beagled" << "--list-backends";
if (!proc->start(KProcess::Block,KProcess::Stdout))
kdError("Could not ask Beagle daemon for available backends.");
if (!useDefaults) {
QStringList disabledBackends = readDisabledBackends();
for ( QStringList::Iterator it_backends = disabledBackends.begin(); it_backends != disabledBackends.end(); ++it_backends ) {
QListViewItem *item = listview->findItem(*it_backends,0);
TQStringList disabledBackends = readDisabledBackends();
for ( TQStringList::Iterator it_backends = disabledBackends.begin(); it_backends != disabledBackends.end(); ++it_backends ) {
TQListViewItem *item = listview->tqfindItem(*it_backends,0);
if (item)
((QCheckListItem*)item)->setOn(false);
((TQCheckListItem*)item)->setOn(false);
}
}
@ -89,11 +89,11 @@ void KCMBeagleBackends::defaults()
void KCMBeagleBackends::save()
{
QStringList disabledBackends;
QListViewItemIterator it_items(listview);
TQStringList disabledBackends;
TQListViewItemIterator it_items(listview);
while (it_items.current())
{
if (!((QCheckListItem*)it_items.current())->isOn())
if (!((TQCheckListItem*)it_items.current())->isOn())
disabledBackends << it_items.current()->text(0);
it_items++;
}
@ -102,23 +102,23 @@ void KCMBeagleBackends::save()
void KCMBeagleBackends::gotAvailableBackends(KProcess*, char *buffer, int len)
{
QString myBuf = QString::fromLatin1(buffer, len);
TQString myBuf = TQString::tqfromLatin1(buffer, len);
if (myBuf.startsWith("User:")) {
QStringList list = QStringList::split('\n',myBuf);
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it )
TQStringList list = TQStringList::split('\n',myBuf);
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
if ((*it).startsWith(" - ")) {
QCheckListItem *item = new QCheckListItem(listview,(*it).mid(3),QCheckListItem::CheckBox);
TQCheckListItem *item = new TQCheckListItem(listview,(*it).mid(3),TQCheckListItem::CheckBox);
item->setOn(true);
}
}
}
QStringList KCMBeagleBackends::readDisabledBackends()
TQStringList KCMBeagleBackends::readDisabledBackends()
{
QStringList disabledBackends;
TQStringList disabledBackends;
QDomDocument doc( "mydocument" );
QFile file( QDir::home().absPath()+"/.beagle/config/daemon.xml" );
TQDomDocument doc( "mydocument" );
TQFile file( TQDir::home().absPath()+"/.beagle/config/daemon.xml" );
if ( !file.open( IO_ReadOnly ) )
return disabledBackends;
@ -128,16 +128,16 @@ QStringList KCMBeagleBackends::readDisabledBackends()
}
file.close();
QDomElement docElem = doc.documentElement();
TQDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
QDomElement e = n.toElement();
TQDomElement e = n.toElement();
if( !e.isNull() ) {
if (e.tagName()=="DeniedBackends") {
QDomNode ro = n.firstChild();
TQDomNode ro = n.firstChild();
while( !ro.isNull() ) {
QDomElement exel = ro.toElement();
TQDomElement exel = ro.toElement();
if( !exel.isNull() )
disabledBackends << exel.text();
ro = ro.nextSibling();
@ -149,20 +149,20 @@ QStringList KCMBeagleBackends::readDisabledBackends()
return disabledBackends;
}
bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
bool KCMBeagleBackends::saveDisabledBackends(TQStringList disabledBackends)
{
QDir beagleDir(QDir::home().absPath()+"/.beagle");
TQDir beagleDir(TQDir::home().absPath()+"/.beagle");
if (!beagleDir.exists())
beagleDir.mkdir(QDir::home().absPath()+"/.beagle");
beagleDir.mkdir(TQDir::home().absPath()+"/.beagle");
QDir beagleConfigDir(QDir::home().absPath()+"/.beagle/config");
TQDir beagleConfigDir(TQDir::home().absPath()+"/.beagle/config");
if (!beagleConfigDir.exists())
beagleConfigDir.mkdir(QDir::home().absPath()+"/.beagle/config");
beagleConfigDir.mkdir(TQDir::home().absPath()+"/.beagle/config");
QFile configFile( QDir::home().absPath()+"/.beagle/config/daemon.xml" );
TQFile configFile( TQDir::home().absPath()+"/.beagle/config/daemon.xml" );
QDomDocument doc( QString::null );
QDomElement root;
TQDomDocument doc( TQString::null );
TQDomElement root;
if (configFile.exists()) {
if ( !configFile.open( IO_ReadOnly ) )
@ -176,9 +176,9 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
root = doc.documentElement();
QDomNode n = root.firstChild();
TQDomNode n = root.firstChild();
while( !n.isNull() ) {
QDomElement e = n.toElement();
TQDomElement e = n.toElement();
if( !e.isNull() )
if (e.tagName()=="DeniedBackends")
root.removeChild( e );
@ -195,15 +195,15 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
doc.appendChild( root );
}
QDomElement rootselement = doc.createElement( "DeniedBackends" );
TQDomElement rootselement = doc.createElement( "DeniedBackends" );
root.appendChild(rootselement);
for ( QStringList::Iterator it = disabledBackends.begin(); it != disabledBackends.end(); ++it ) {
QDomElement tag = doc.createElement( "anyType" );
for ( TQStringList::Iterator it = disabledBackends.begin(); it != disabledBackends.end(); ++it ) {
TQDomElement tag = doc.createElement( "anyType" );
tag.setAttribute("xsi:type","xsd:string");
rootselement.appendChild( tag );
QDomText t = doc.createTextNode( *it );
TQDomText t = doc.createTextNode( *it );
tag.appendChild( t );
}
@ -211,7 +211,7 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
if ( !configFile.open( IO_WriteOnly ) )
return false;
QTextStream stream( &configFile );
TQTextStream stream( &configFile );
stream << doc.toString();
configFile.close();

@ -30,9 +30,10 @@
class KCMBeagleBackends : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMBeagleBackends(QWidget *parent=0, const char *name=0);
KCMBeagleBackends(TQWidget *tqparent=0, const char *name=0);
~KCMBeagleBackends();
virtual void load();
@ -47,8 +48,8 @@ protected slots:
private:
KListView* listview;
QStringList readDisabledBackends();
bool saveDisabledBackends(QStringList disabledBackends);
TQStringList readDisabledBackends();
bool saveDisabledBackends(TQStringList disabledBackends);
};
#endif

@ -19,8 +19,8 @@
******************************************************************/
#include <qlayout.h>
#include <qtabwidget.h>
#include <tqlayout.h>
#include <tqtabwidget.h>
#include <kdebug.h>
#include <kdialog.h>
#include <klocale.h>
@ -31,32 +31,32 @@
#include "backends.h"
#include "status.h"
KCMBeagle::KCMBeagle(QWidget *parent, const char *name)
: KCModule( parent, "kcmbeagle" )
KCMBeagle::KCMBeagle(TQWidget *tqparent, const char *name)
: KCModule( tqparent, "kcmbeagle" )
{
setButtons(Default+Apply);
QVBoxLayout *layout = new QVBoxLayout(this);
m_tab = new QTabWidget(this);
layout->addWidget(m_tab);
TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
m_tab = new TQTabWidget(this);
tqlayout->addWidget(m_tab);
m_indexing = new KCMBeagleIndexing( m_tab, name );
m_indexing->layout()->setMargin( KDialog::marginHint() );
m_indexing->tqlayout()->setMargin( KDialog::marginHint() );
m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->layout()->setMargin( KDialog::marginHint() );
m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagleStatus( m_tab, name );
m_status->layout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagletqStatus( m_tab, name );
m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_indexing, i18n("&Indexing"));
m_tab->addTab(m_backends, i18n("&Backends"));
m_tab->addTab(m_status, i18n("&Daemon Status"));
m_tab->addTab(m_status, i18n("&Daemon tqStatus"));
connect(m_indexing, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_backends, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_status, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_tab, SIGNAL(currentChanged(QWidget *)), SIGNAL(quickHelpChanged()));
connect(m_indexing, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_backends, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_status, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_tab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged()));
}
void KCMBeagle::load()
@ -86,15 +86,15 @@ void KCMBeagle::save()
kdError("Could not make Beagle reload its config.");
}
QString KCMBeagle::quickHelp() const
TQString KCMBeagle::quickHelp() const
{
QWidget *w = m_tab->currentPage();
TQWidget *w = m_tab->currentPage();
if (w->inherits("KCModule"))
{
KCModule *m = static_cast<KCModule *>(w);
return m->quickHelp();
}
return QString::null;
return TQString();
}
#include "beagle.moc"

@ -25,25 +25,26 @@
#include <kcmodule.h>
class KConfig;
class QTabWidget;
class TQTabWidget;
class KCMBeagle : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMBeagle(QWidget *parent=0, const char *name=0);
KCMBeagle(TQWidget *tqparent=0, const char *name=0);
virtual void load();
virtual void save();
virtual void defaults();
virtual QString quickHelp() const;
virtual TQString quickHelp() const;
private:
KCModule *m_indexing;
KCModule *m_backends;
KCModule *m_status;
QTabWidget *m_tab;
TQTabWidget *m_tab;
};
#endif

@ -22,11 +22,11 @@
#include "indexing.h"
#include "select_privacy_resource.h"
#include <qdom.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qradiobutton.h>
#include <tqdom.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqradiobutton.h>
#include <kconfig.h>
#include <kdialog.h>
#include <kdirselectdialog.h>
@ -38,38 +38,38 @@
#include <kurl.h>
#include <kurlrequester.h>
KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
: KCModule(parent, "kcmbeagleindexing")
KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *tqparent, const char * )
: KCModule(tqparent, "kcmbeagleindexing")
{
QVBoxLayout* top_layout = new QVBoxLayout( this, KDialog::spacingHint() );
TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
// General
QGroupBox* gb_general = new QGroupBox(0, Qt::Vertical, i18n("General"), this);
TQGroupBox* gb_general = new TQGroupBox(0, Qt::Vertical, i18n("General"), this);
top_layout->addWidget(gb_general);
gb_general->setFlat(true);
QVBoxLayout* gb_general_layout = new QVBoxLayout( gb_general->layout(), KDialog::spacingHint() );
TQVBoxLayout* gb_general_layout = new TQVBoxLayout( gb_general->tqlayout(), KDialog::spacingHint() );
startBeagle = new QCheckBox(i18n("Start Beagle indexing service automatically"), gb_general);
startBeagle = new TQCheckBox(i18n("Start Beagle indexing service automatically"), gb_general);
gb_general_layout->addWidget( startBeagle);
indexOnBattery = new QCheckBox(i18n("Index data while on battery power"), gb_general);
indexOnBattery = new TQCheckBox(i18n("Index data while on battery power"), gb_general);
gb_general_layout->addWidget( indexOnBattery );
// Index
QGroupBox* gb_index = new QGroupBox(0, Qt::Vertical, i18n("Index"), this);
TQGroupBox* gb_index = new TQGroupBox(0, Qt::Vertical, i18n("Index"), this);
top_layout->addWidget(gb_index);
gb_index->setFlat(true);
QVBoxLayout* gb_index_layout = new QVBoxLayout( gb_index->layout(), KDialog::spacingHint() );
TQVBoxLayout* gb_index_layout = new TQVBoxLayout( gb_index->tqlayout(), KDialog::spacingHint() );
QHBoxLayout* qh_index = new QHBoxLayout(gb_index_layout);
indexHome = new QCheckBox(i18n("Index my home folder"), gb_index);
TQHBoxLayout* qh_index = new TQHBoxLayout(gb_index_layout);
indexHome = new TQCheckBox(i18n("Index my home folder"), gb_index);
qh_index->addWidget( indexHome );
qh_index->addStretch(1);
QLabel* label_index = new QLabel(i18n( "Add any additional folder to be included for indexing." ), gb_index);
TQLabel* label_index = new TQLabel(i18n( "Add any additional folder to be included for indexing." ), gb_index);
gb_index_layout->addWidget(label_index);
QGridLayout* grid_index = new QGridLayout( gb_index_layout, 1, 1, KDialog::spacingHint());
TQGridLayout* grid_index = new TQGridLayout( gb_index_layout, 1, 1, KDialog::spacingHint());
index_list = new KListView( gb_index );
index_list->addColumn( i18n( "Name" ) );
@ -78,30 +78,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_index->addMultiCellWidget( index_list, 0, 2, 0, 0 );
label_index->setBuddy(index_list);
QPushButton* add_index = new QPushButton( i18n("Add..."), gb_index );
TQPushButton* add_index = new TQPushButton( i18n("Add..."), gb_index );
grid_index->addWidget( add_index, 0, 1 );
remove_index = new QPushButton( i18n("Remove"), gb_index );
remove_index = new TQPushButton( i18n("Remove"), gb_index );
remove_index->setEnabled(false);
grid_index->addWidget( remove_index, 1, 1 );
QSpacerItem* index_spacer = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Preferred );
TQSpacerItem* index_spacer = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
grid_index->addItem( index_spacer, 2, 1 );
connect( add_index, SIGNAL( clicked() ), this, SLOT( slotAddSearch() ) );
connect( remove_index, SIGNAL( clicked() ), this, SLOT( slotRemoveSearch() ) );
connect( index_list, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSearchSelectionChanged(QListViewItem*) ) );
connect( add_index, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddSearch() ) );
connect( remove_index, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveSearch() ) );
connect( index_list, TQT_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQT_SLOT( slotSearchSelectionChanged(TQListViewItem*) ) );
// Privacy
QGroupBox* gb_privacy = new QGroupBox(0, Qt::Vertical, i18n("Privacy"), this);
TQGroupBox* gb_privacy = new TQGroupBox(0, Qt::Vertical, i18n("Privacy"), this);
top_layout->addWidget(gb_privacy);
gb_privacy->setFlat(true);
QVBoxLayout* gb_privacy_layout = new QVBoxLayout( gb_privacy->layout(), KDialog::spacingHint() );
TQVBoxLayout* gb_privacy_layout = new TQVBoxLayout( gb_privacy->tqlayout(), KDialog::spacingHint() );
QLabel* label_privacy = new QLabel(i18n( "Specify any resource, such as folder or pattern, you wish to exclude from indexing." ), gb_privacy);
TQLabel* label_privacy = new TQLabel(i18n( "Specify any resource, such as folder or pattern, you wish to exclude from indexing." ), gb_privacy);
gb_privacy_layout->addWidget(label_privacy);
QGridLayout* grid_privacy = new QGridLayout( gb_privacy_layout, 1, 1, KDialog::spacingHint());
TQGridLayout* grid_privacy = new TQGridLayout( gb_privacy_layout, 1, 1, KDialog::spacingHint());
privacy_list = new KListView( gb_privacy );
privacy_list->addColumn( i18n( "Type" ) );
@ -112,30 +112,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_privacy->addMultiCellWidget( privacy_list, 0, 2, 0, 0 );
label_privacy->setBuddy(privacy_list);
QPushButton* add_privacy = new QPushButton( i18n("Add..."), gb_privacy );
TQPushButton* add_privacy = new TQPushButton( i18n("Add..."), gb_privacy );
grid_privacy->addWidget( add_privacy, 0, 1 );
remove_privacy = new QPushButton( i18n("Remove"), gb_privacy );
remove_privacy = new TQPushButton( i18n("Remove"), gb_privacy );
remove_privacy->setEnabled(false);
grid_privacy->addWidget( remove_privacy, 1, 1 );
QSpacerItem* privacy_spacer = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Preferred );
TQSpacerItem* privacy_spacer = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
grid_privacy->addItem( privacy_spacer, 2, 1 );
connect( add_privacy, SIGNAL( clicked() ), this, SLOT( slotAddPrivacy() ) );
connect( remove_privacy, SIGNAL( clicked() ), this, SLOT( slotRemovePrivacy() ) );
connect( privacy_list, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotPrivacySelectionChanged(QListViewItem*) ) );
connect( add_privacy, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddPrivacy() ) );
connect( remove_privacy, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemovePrivacy() ) );
connect( privacy_list, TQT_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQT_SLOT( slotPrivacySelectionChanged(TQListViewItem*) ) );
// Add some spacing at the end
QWidget *dummy = new QWidget( this );
TQWidget *dummy = new TQWidget( this );
top_layout->addWidget(dummy);
top_layout->setStretchFactor( dummy, 1 );
load();
connect(indexOnBattery, SIGNAL(clicked()), SLOT(changedValue()));
connect(startBeagle, SIGNAL(clicked()), SLOT(changedValue()));
connect(indexHome, SIGNAL(clicked()), SLOT(changedValue()));
connect(indexOnBattery, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
connect(startBeagle, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
connect(indexHome, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
}
KCMBeagleIndexing::~KCMBeagleIndexing()
@ -155,7 +155,7 @@ void KCMBeagleIndexing::load()
void KCMBeagleIndexing::load( bool useDefaults )
{
bool _indexHomeDir, _indexOnBattery, _startBeagle;
QStringList roots, excludeTypes, excludeValues;
TQStringList roots, excludeTypes, excludeValues;
if (useDefaults) {
_indexHomeDir = true;
@ -177,14 +177,14 @@ void KCMBeagleIndexing::load( bool useDefaults )
index_list->clear();
remove_index->setEnabled(false);
for ( QStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
for ( TQStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
new KListViewItem(index_list,*it);
}
privacy_list->clear();
remove_privacy->setEnabled(false);
QStringList::Iterator it_values = excludeValues.begin();
for ( QStringList::Iterator it_types = excludeTypes.begin(); it_types != excludeTypes.end(); ++it_types ) {
TQStringList::Iterator it_values = excludeValues.begin();
for ( TQStringList::Iterator it_types = excludeTypes.begin(); it_types != excludeTypes.end(); ++it_types ) {
new KListViewItem(privacy_list,*it_types,*it_values);
it_values++;
}
@ -206,15 +206,15 @@ void KCMBeagleIndexing::save()
delete config;
QStringList roots;
TQStringList roots;
for (int i=0;i<index_list->childCount();i++)
roots << index_list->itemAtIndex(i)->text(0);
QStringList excludeTypes;
TQStringList excludeTypes;
for (int i=0;i<privacy_list->childCount();i++)
excludeTypes << privacy_list->itemAtIndex(i)->text(0);
QStringList excludeValues;
TQStringList excludeValues;
for (int i=0;i<privacy_list->childCount();i++)
excludeValues << privacy_list->itemAtIndex(i)->text(1);
@ -223,19 +223,19 @@ void KCMBeagleIndexing::save()
void KCMBeagleIndexing::slotAddSearch()
{
KURL path = KDirSelectDialog::selectDirectory( QDir::home().absPath(), true, this, i18n("Select Folder"));
KURL path = KDirSelectDialog::selectDirectory( TQDir::home().absPath(), true, this, i18n("Select Folder"));
new KListViewItem(index_list,path.path());
changedValue();
}
void KCMBeagleIndexing::slotSearchSelectionChanged(QListViewItem* item)
void KCMBeagleIndexing::slotSearchSelectionChanged(TQListViewItem* item)
{
remove_index->setEnabled( item );
}
void KCMBeagleIndexing::slotRemoveSearch()
{
QListViewItem *item = index_list->currentItem();
TQListViewItem *item = index_list->currentItem();
if (item &&
KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this folder from the list of folders to be included for indexing?</qt>"),i18n("Remove Folder"),KStdGuiItem::del()) == KMessageBox::Continue)
{
@ -250,10 +250,10 @@ void KCMBeagleIndexing::slotAddPrivacy()
KDialogBase dlg(this, 0, true, i18n("Add Resource"), KDialogBase::Ok | KDialogBase::Cancel);
AddPrivacyResource w(&dlg);
dlg.setMainWidget(&w);
connect(w.radioButtonFolder, SIGNAL(toggled(bool)), w.folderRequester, SLOT(setEnabled(bool)));
connect(w.radioButtonFolder, SIGNAL(toggled(bool)), w.patternEdit, SLOT(setDisabled(bool)));
connect(w.radioButtonPattern, SIGNAL(toggled(bool)), w.patternEdit, SLOT(setEnabled(bool)));
connect(w.radioButtonPattern, SIGNAL(toggled(bool)), w.folderRequester, SLOT(setDisabled(bool)));
connect(w.radioButtonFolder, TQT_SIGNAL(toggled(bool)), w.folderRequester, TQT_SLOT(setEnabled(bool)));
connect(w.radioButtonFolder, TQT_SIGNAL(toggled(bool)), w.patternEdit, TQT_SLOT(setDisabled(bool)));
connect(w.radioButtonPattern, TQT_SIGNAL(toggled(bool)), w.patternEdit, TQT_SLOT(setEnabled(bool)));
connect(w.radioButtonPattern, TQT_SIGNAL(toggled(bool)), w.folderRequester, TQT_SLOT(setDisabled(bool)));
w.folderRequester->setCaption(i18n("Select Folder"));
w.radioButtonFolder->setChecked(true);
w.folderRequester->setMode(KFile::Directory | KFile::LocalOnly);
@ -272,7 +272,7 @@ void KCMBeagleIndexing::slotAddPrivacy()
void KCMBeagleIndexing::slotRemovePrivacy()
{
QListViewItem *item = privacy_list->currentItem();
TQListViewItem *item = privacy_list->currentItem();
if (item &&
KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this item from the list of data to be excluded from indexing?</qt>"),i18n("Remove Item"),KStdGuiItem::del()) == KMessageBox::Continue)
{
@ -282,12 +282,12 @@ void KCMBeagleIndexing::slotRemovePrivacy()
}
}
void KCMBeagleIndexing::slotPrivacySelectionChanged(QListViewItem* item)
void KCMBeagleIndexing::slotPrivacySelectionChanged(TQListViewItem* item)
{
remove_privacy->setEnabled( item );
}
void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, QStringList &roots, QStringList &excludeTypes, QStringList &excludeValues)
void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, TQStringList &roots, TQStringList &excludeTypes, TQStringList &excludeValues)
{
indexHomeDir = true;
indexOnBattery = true;
@ -295,40 +295,40 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
excludeTypes.clear();
excludeValues.clear();
QFile file( QDir::home().absPath()+"/.beagle/config/indexing.xml" );
TQFile file( TQDir::home().absPath()+"/.beagle/config/indexing.xml" );
if ( !file.open( IO_ReadOnly ) )
return;
QDomDocument doc( "mydocument" );
TQDomDocument doc( "mydocument" );
if ( !doc.setContent( &file ) ) {
file.close();
return;
}
file.close();
QDomElement docElem = doc.documentElement();
TQDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
QDomElement e = n.toElement();
TQDomElement e = n.toElement();
if( !e.isNull() ) {
if (e.tagName()=="IndexHomeDir")
indexHomeDir = e.text()=="true";
if (e.tagName()=="IndexOnBattery")
indexOnBattery = e.text()=="true";
else if (e.tagName()=="Roots") {
QDomNode ro = n.firstChild();
TQDomNode ro = n.firstChild();
while( !ro.isNull() ) {
QDomElement exel = ro.toElement();
TQDomElement exel = ro.toElement();
if( !exel.isNull() )
roots << exel.text();
ro = ro.nextSibling();
}
}
else if (e.tagName()=="Excludes") {
QDomNode ex = n.firstChild();
TQDomNode ex = n.firstChild();
while( !ex.isNull() ) {
QDomElement exel = ex.toElement();
TQDomElement exel = ex.toElement();
if( !exel.isNull() ) {
excludeTypes << exel.attribute("Type");
excludeValues << exel.attribute("Value");
@ -341,44 +341,44 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
}
}
bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery, QStringList roots, QStringList excludeTypes, QStringList excludeValues)
bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery, TQStringList roots, TQStringList excludeTypes, TQStringList excludeValues)
{
QDir beagleDir(QDir::home().absPath()+"/.beagle");
TQDir beagleDir(TQDir::home().absPath()+"/.beagle");
if (!beagleDir.exists())
beagleDir.mkdir(QDir::home().absPath()+"/.beagle");
beagleDir.mkdir(TQDir::home().absPath()+"/.beagle");
QDir beagleConfigDir(QDir::home().absPath()+"/.beagle/config");
TQDir beagleConfigDir(TQDir::home().absPath()+"/.beagle/config");
if (!beagleConfigDir.exists())
beagleConfigDir.mkdir(QDir::home().absPath()+"/.beagle/config");
beagleConfigDir.mkdir(TQDir::home().absPath()+"/.beagle/config");
QFile configFile( QDir::home().absPath()+"/.beagle/config/indexing.xml" );
TQFile configFile( TQDir::home().absPath()+"/.beagle/config/indexing.xml" );
if ( !configFile.open( IO_WriteOnly ) )
return false;
QDomDocument doc( QString::null );
TQDomDocument doc( TQString::null );
doc.appendChild( doc.createProcessingInstruction(
"xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
QDomElement root = doc.createElement( "IndexingConfig" );
TQDomElement root = doc.createElement( "IndexingConfig" );
root.setAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema");
root.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");
doc.appendChild( root );
QDomElement rootselement = doc.createElement( "Roots" );
TQDomElement rootselement = doc.createElement( "Roots" );
root.appendChild(rootselement);
for ( QStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
QDomElement tag = doc.createElement( "Root" );
for ( TQStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
TQDomElement tag = doc.createElement( "Root" );
rootselement.appendChild( tag );
QDomText t = doc.createTextNode( *it );
TQDomText t = doc.createTextNode( *it );
tag.appendChild( t );
}
QDomElement tag = doc.createElement( "IndexHomeDir" );
TQDomElement tag = doc.createElement( "IndexHomeDir" );
root.appendChild( tag );
QDomText t = doc.createTextNode( indexHomeDir ? "true" : "false" );
TQDomText t = doc.createTextNode( indexHomeDir ? "true" : "false" );
tag.appendChild( t );
tag = doc.createElement( "IndexOnBattery" );
@ -387,12 +387,12 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
t = doc.createTextNode( indexOnBattery ? "true" : "false" );
tag.appendChild( t );
QDomElement excludeselement = doc.createElement( "Excludes" );
TQDomElement excludeselement = doc.createElement( "Excludes" );
root.appendChild(excludeselement);
QStringList::Iterator it_types = excludeTypes.begin();
for ( QStringList::Iterator it = excludeValues.begin(); it != excludeValues.end(); ++it ) {
QDomElement t = doc.createElement( "ExcludeItem" );
TQStringList::Iterator it_types = excludeTypes.begin();
for ( TQStringList::Iterator it = excludeValues.begin(); it != excludeValues.end(); ++it ) {
TQDomElement t = doc.createElement( "ExcludeItem" );
t.setAttribute("Type", *it_types);
t.setAttribute("Value", *it);
excludeselement.appendChild( t );
@ -400,7 +400,7 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
++it_types;
}
QTextStream stream( &configFile );
TQTextStream stream( &configFile );
stream << doc.toString();
configFile.close();

@ -22,7 +22,7 @@
#ifndef __INDEXING_H__
#define __INDEXING_H__
#include <qcheckbox.h>
#include <tqcheckbox.h>
#include <klistview.h>
#include <kpushbutton.h>
#include <kcmodule.h>
@ -30,9 +30,10 @@
class KCMBeagleIndexing : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMBeagleIndexing(QWidget *parent=0, const char *name=0);
KCMBeagleIndexing(TQWidget *tqparent=0, const char *name=0);
~KCMBeagleIndexing();
virtual void load();
@ -43,21 +44,21 @@ public:
private slots:
void slotAddSearch();
void slotRemoveSearch();
void slotSearchSelectionChanged(QListViewItem*);
void slotSearchSelectionChanged(TQListViewItem*);
void slotAddPrivacy();
void slotRemovePrivacy();
void slotPrivacySelectionChanged(QListViewItem*);
void slotPrivacySelectionChanged(TQListViewItem*);
void changedValue();
private:
QCheckBox *startBeagle;
QCheckBox *indexOnBattery;
QCheckBox *indexHome;
TQCheckBox *startBeagle;
TQCheckBox *indexOnBattery;
TQCheckBox *indexHome;
KListView* index_list, *privacy_list;
QPushButton* remove_index, *remove_privacy;
TQPushButton* remove_index, *remove_privacy;
void readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, QStringList &roots, QStringList &excludeTypes, QStringList &excludeValues);
bool saveIndexConfig(bool indexHomeDir, bool indexOnBattery, QStringList roots, QStringList excludeTypes, QStringList excludeValues);
void readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, TQStringList &roots, TQStringList &excludeTypes, TQStringList &excludeValues);
bool saveIndexConfig(bool indexHomeDir, bool indexOnBattery, TQStringList roots, TQStringList excludeTypes, TQStringList excludeValues);
};
#endif

@ -19,8 +19,8 @@
******************************************************************/
#include <qlayout.h>
#include <qtabwidget.h>
#include <tqlayout.h>
#include <tqtabwidget.h>
#include <dcopclient.h>
#include <kapplication.h>
#include <kdebug.h>
@ -34,36 +34,36 @@
#include "backends.h"
#include "status.h"
KCMKerry::KCMKerry(QWidget *parent, const char *name)
: KCModule( parent, "kcmkerry" )
KCMKerry::KCMKerry(TQWidget *tqparent, const char *name)
: KCModule( tqparent, "kcmkerry" )
{
setButtons(Default+Apply);
QVBoxLayout *layout = new QVBoxLayout(this);
m_tab = new QTabWidget(this);
layout->addWidget(m_tab);
TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
m_tab = new TQTabWidget(this);
tqlayout->addWidget(m_tab);
m_search = new KCMKerrySearch( m_tab, name );
m_search->layout()->setMargin( KDialog::marginHint() );
m_search->tqlayout()->setMargin( KDialog::marginHint() );
m_indexing = new KCMBeagleIndexing( m_tab, name );
m_indexing->layout()->setMargin( KDialog::marginHint() );
m_indexing->tqlayout()->setMargin( KDialog::marginHint() );
m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->layout()->setMargin( KDialog::marginHint() );
m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagleStatus( m_tab, name );
m_status->layout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagletqStatus( m_tab, name );
m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_search, i18n("&Search"));
m_tab->addTab(m_indexing, i18n("&Indexing"));
m_tab->addTab(m_backends, i18n("&Backends"));
m_tab->addTab(m_status, i18n("&Daemon Status"));
m_tab->addTab(m_status, i18n("&Daemon tqStatus"));
connect(m_search, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_indexing, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_backends, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_status, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
connect(m_tab, SIGNAL(currentChanged(QWidget *)), SIGNAL(quickHelpChanged()));
connect(m_search, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_indexing, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_backends, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_status, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_tab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged()));
}
void KCMKerry::load()
@ -90,7 +90,7 @@ void KCMKerry::save()
m_status->save();
DCOPClient *client = kapp->dcopClient();
client->send("kerry", "default", "configChanged()", "");
client->send("kerry", "default", "configChanged()", TQString(""));
KProcess *proc = new KProcess;
*proc << "beagle-config";
@ -99,15 +99,15 @@ void KCMKerry::save()
kdError("Could not make Beagle reload its config.");
}
QString KCMKerry::quickHelp() const
TQString KCMKerry::quickHelp() const
{
QWidget *w = m_tab->currentPage();
TQWidget *w = m_tab->currentPage();
if (w->inherits("KCModule"))
{
KCModule *m = static_cast<KCModule *>(w);
return m->quickHelp();
}
return QString::null;
return TQString();
}
#include "kerry.moc"

@ -25,26 +25,27 @@
#include <kcmodule.h>
class KConfig;
class QTabWidget;
class TQTabWidget;
class KCMKerry : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMKerry(QWidget *parent=0, const char *name=0);
KCMKerry(TQWidget *tqparent=0, const char *name=0);
virtual void load();
virtual void save();
virtual void defaults();
virtual QString quickHelp() const;
virtual TQString quickHelp() const;
private:
KCModule *m_search;
KCModule *m_indexing;
KCModule *m_backends;
KCModule *m_status;
QTabWidget *m_tab;
TQTabWidget *m_tab;
};
#endif

@ -27,16 +27,16 @@
extern "C"
{
KDE_EXPORT KCModule *create_beagle(QWidget *parent, const char *name)
KDE_EXPORT KCModule *create_beagle(TQWidget *tqparent, const char *name)
{
KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMBeagle(parent, name);
return new KCMBeagle(tqparent, name);
}
KDE_EXPORT KCModule *create_kerry(QWidget *parent, const char *name)
KDE_EXPORT KCModule *create_kerry(TQWidget *tqparent, const char *name)
{
KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMKerry(parent, name);
return new KCMKerry(tqparent, name);
}
}

@ -23,54 +23,54 @@
#include <kconfig.h>
KCMKerrySearch::KCMKerrySearch(QWidget *parent, const char * )
: KCModule(parent, "kcmkerrysearch")
KCMKerrySearch::KCMKerrySearch(TQWidget *tqparent, const char * )
: KCModule(tqparent, "kcmkerrysearch")
{
QVBoxLayout* top_layout = new QVBoxLayout( this, KDialog::spacingHint() );
TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
// General
QGroupBox* gb_general = new QGroupBox(0, Qt::Vertical, i18n("General"), this);
TQGroupBox* gb_general = new TQGroupBox(0, Qt::Vertical, i18n("General"), this);
gb_general->setFlat(true);
top_layout->addWidget(gb_general);
QVBoxLayout* gb_general_layout = new QVBoxLayout( gb_general->layout(), KDialog::spacingHint() );
TQVBoxLayout* gb_general_layout = new TQVBoxLayout( gb_general->tqlayout(), KDialog::spacingHint() );
QHBoxLayout* qh_layout = new QHBoxLayout(gb_general_layout);
QLabel* label_order = new QLabel(i18n("Default result sort order:"), gb_general);
TQHBoxLayout* qh_layout = new TQHBoxLayout(gb_general_layout);
TQLabel* label_order = new TQLabel(i18n("Default result sort order:"), gb_general);
qh_layout->addWidget(label_order);
combo_order = new QComboBox(gb_general);
combo_order = new TQComboBox(gb_general);
combo_order->insertItem(i18n("Type"));
combo_order->insertItem(i18n("Date Modified"));
combo_order->insertItem(i18n("Name"));
combo_order->insertItem(i18n("Relevance"));
QWhatsThis::add(combo_order,i18n("Define the default sort order at startup."));
TQWhatsThis::add(combo_order,i18n("Define the default sort order at startup."));
label_order->setBuddy(combo_order);
qh_layout->addWidget(combo_order);
QHBoxLayout* qh_number = new QHBoxLayout(gb_general_layout);
QLabel* label_number = new QLabel(i18n( "Maximum number of results displayed:" ), gb_general);
TQHBoxLayout* qh_number = new TQHBoxLayout(gb_general_layout);
TQLabel* label_number = new TQLabel(i18n( "Maximum number of results displayed:" ), gb_general);
qh_number->addWidget(label_number);
maxResultsDisplayed = new QSpinBox( 1, 100, 1, gb_general );
maxResultsDisplayed = new TQSpinBox( 1, 100, 1, gb_general );
maxResultsDisplayed->setSpecialValueText(i18n("No Limit"));
QWhatsThis::add(maxResultsDisplayed,i18n("Define how many results shall be displayed on one result page."));
TQWhatsThis::add(maxResultsDisplayed,i18n("Define how many results shall be displayed on one result page."));
label_number->setBuddy(maxResultsDisplayed);
qh_number->addWidget(maxResultsDisplayed);
showBigTiles = new QCheckBox(i18n("Show search results with details by default"), gb_general);
showBigTiles = new TQCheckBox(i18n("Show search results with details by default"), gb_general);
gb_general_layout->addWidget(showBigTiles);
// Global Shortcuts
QGroupBox* gb_keys = new QGroupBox(0, Qt::Vertical, i18n("Global Shortcuts"), this);
QVBoxLayout* gb_keys_layout = new QVBoxLayout( gb_keys->layout(), KDialog::spacingHint() );
TQGroupBox* gb_keys = new TQGroupBox(0, Qt::Vertical, i18n("Global Shortcuts"), this);
TQVBoxLayout* gb_keys_layout = new TQVBoxLayout( gb_keys->tqlayout(), KDialog::spacingHint() );
top_layout->addWidget(gb_keys);
gb_keys->setFlat(true);
globalKeys = new KGlobalAccel(this);
globalKeys = new KGlobalAccel(TQT_TQOBJECT(this));
globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") );
KShortcut showDialogShortcut = KShortcut(ALT+Key_Space);
showDialogShortcut.append( KKey( Key_F12 ) );
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), QString::null, showDialogShortcut, showDialogShortcut, 0, 0);
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), QString::null, CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, 0, 0);
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), TQString(), showDialogShortcut, showDialogShortcut, 0, 0);
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), TQString(), CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, 0, 0);
KConfig *config = new KConfig("kerryrc");
globalKeys->readSettings(config);
@ -80,14 +80,14 @@ KCMKerrySearch::KCMKerrySearch(QWidget *parent, const char * )
gb_keys_layout->addWidget(keysWidget);
// Add some spacing at the end
QWidget *dummy = new QWidget( this );
TQWidget *dummy = new TQWidget( this );
top_layout->setStretchFactor( dummy, 1 );
top_layout->addWidget(dummy);
connect(maxResultsDisplayed, SIGNAL(valueChanged(int)), SLOT(changedValue()));
connect(combo_order, SIGNAL(activated(int)), SLOT(changedValue()));
connect(keysWidget, SIGNAL(keyChange()), SLOT(changedValue()));
connect(showBigTiles, SIGNAL(clicked()), SLOT(changedValue()));
connect(maxResultsDisplayed, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changedValue()));
connect(combo_order, TQT_SIGNAL(activated(int)), TQT_SLOT(changedValue()));
connect(keysWidget, TQT_SIGNAL(keyChange()), TQT_SLOT(changedValue()));
connect(showBigTiles, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
load();
}

@ -22,14 +22,14 @@
#ifndef __SEARCH_H__
#define __SEARCH_H__
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qspinbox.h>
#include <qwhatsthis.h>
#include <tqcheckbox.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqspinbox.h>
#include <tqwhatsthis.h>
#include <kcmodule.h>
#include <qcombobox.h>
#include <tqcombobox.h>
#include <kglobalaccel.h>
#include <kkeydialog.h>
#include <klocale.h>
@ -37,9 +37,10 @@
class KCMKerrySearch : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMKerrySearch(QWidget *parent=0, const char *name=0);
KCMKerrySearch(TQWidget *tqparent=0, const char *name=0);
~KCMKerrySearch();
virtual void load();
@ -51,9 +52,9 @@ protected slots:
void changedValue();
private:
QSpinBox *maxResultsDisplayed;
QComboBox* combo_order;
QCheckBox* showBigTiles;
TQSpinBox *maxResultsDisplayed;
TQComboBox* combo_order;
TQCheckBox* showBigTiles;
KKeyChooser *keysWidget;
KGlobalAccel *globalKeys;
};

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AddPrivacyResource</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>AddPrivacyResource</cstring>
</property>
@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel</cstring>
</property>
@ -27,7 +27,7 @@
<string>Please select a resource you wish to exclude from indexing.</string>
</property>
</widget>
<widget class="QButtonGroup" row="1" column="0">
<widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@ -47,7 +47,7 @@
<property name="spacing">
<number>0</number>
</property>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<cstring>radioButtonFolder</cstring>
</property>
@ -60,7 +60,7 @@
<cstring>folderRequester</cstring>
</property>
</widget>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<cstring>radioButtonPattern</cstring>
</property>
@ -82,5 +82,5 @@
<includes>
<include location="local" impldecl="in implementation">select_privacy_resource.ui.h</include>
</includes>
<layoutdefaults spacing="6" margin="11"/>
<tqlayoutdefaults spacing="6" margin="11"/>
</UI>

@ -22,10 +22,10 @@
#include "status.h"
#include <qdatetime.h>
#include <qhbox.h>
#include <qlayout.h>
#include <qtimer.h>
#include <tqdatetime.h>
#include <tqhbox.h>
#include <tqlayout.h>
#include <tqtimer.h>
#include <kdialog.h>
#include <klocale.h>
#include <kpassivepopup.h>
@ -36,64 +36,64 @@ extern "C" {
#include <beagle/beagle.h>
}
KCMBeagleStatus::KCMBeagleStatus(QWidget *parent, const char * )
: KCModule(parent, "kcmbeaglestatus")
KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *tqparent, const char * )
: KCModule(tqparent, "kcmbeaglestatus")
{
QVBoxLayout* general_layout = new QVBoxLayout( this, KDialog::spacingHint() );
TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
QHBox *control_box = new QHBox (this);
TQHBox *control_box = new TQHBox (this);
control_box->setSpacing (3);
general_layout->addWidget(control_box);
label_control = new QLabel (control_box);
label_control = new TQLabel (control_box);
QWidget *dummy = new QWidget( control_box );
TQWidget *dummy = new TQWidget( control_box );
control_box->setStretchFactor( dummy, 1 );
pb_control = new KPushButton (control_box);
connect (pb_control, SIGNAL (clicked ()), this, SLOT (controlPressed ()) );
connect (pb_control, TQT_SIGNAL (clicked ()), this, TQT_SLOT (controlPressed ()) );
status_box = new QGroupBox (1, Qt::Horizontal, this);
status_box = new TQGroupBox (1, Qt::Horizontal, this);
general_layout->addWidget(status_box);
version_label = new QLabel (status_box);
version_label = new TQLabel (status_box);
status_area = new QTextEdit (status_box);
status_area = new TQTextEdit (status_box);
status_area->setReadOnly (true);
index_info_box = new QTextEdit (status_box);
index_info_box = new TQTextEdit (status_box);
index_info_box->setReadOnly (true);
QHBox *footer_box = new QHBox (this);
TQHBox *footer_box = new TQHBox (this);
general_layout->addWidget(footer_box);
// Add some spacing to left
dummy = new QWidget( footer_box );
dummy = new TQWidget( footer_box );
footer_box->setStretchFactor( dummy, 1 );
pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box);
connect (pb_refresh, SIGNAL (clicked()), this, SLOT (refreshStatus ()) );
pb_refresh = new KPushButton (i18n("Refresh tqStatus"), footer_box);
connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshtqStatus ()) );
g_type_init ();
refreshStatus ();
refreshtqStatus ();
load();
}
KCMBeagleStatus::~KCMBeagleStatus()
KCMBeagletqStatus::~KCMBeagletqStatus()
{
}
void KCMBeagleStatus::load()
void KCMBeagletqStatus::load()
{
load( false );
}
void KCMBeagleStatus::load( bool useDefaults )
void KCMBeagletqStatus::load( bool useDefaults )
{
emit changed( useDefaults );
}
void KCMBeagleStatus::defaults()
void KCMBeagletqStatus::defaults()
{
// if (!beagle_util_daemon_is_running ())
// controlPressed();
@ -101,12 +101,12 @@ void KCMBeagleStatus::defaults()
load( true );
}
void KCMBeagleStatus::save()
void KCMBeagletqStatus::save()
{
}
bool KCMBeagleStatus::refreshDaemonStatus ()
bool KCMBeagletqStatus::refreshDaemontqStatus ()
{
gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) {
@ -121,12 +121,12 @@ bool KCMBeagleStatus::refreshDaemonStatus ()
return is_running;
}
void KCMBeagleStatus::refreshStatus ()
void KCMBeagletqStatus::refreshtqStatus ()
{
pb_refresh->setDisabled (TRUE);
bool is_running = refreshDaemonStatus ();
bool is_running = refreshDaemontqStatus ();
status_box->setTitle ( QString ("[%1] ").arg (QDateTime::currentDateTime ().toString ()) );
status_box->setTitle ( TQString ("[%1] ").arg (TQDateTime::tqcurrentDateTime ().toString ()) );
if (! is_running) {
version_label->setText (i18n("Service not started."));
pb_refresh->setDisabled (FALSE);
@ -157,25 +157,25 @@ void KCMBeagleStatus::refreshStatus ()
pb_refresh->setDisabled (FALSE);
}
void KCMBeagleStatus::controlPressed ()
void KCMBeagletqStatus::controlPressed ()
{
pb_control->setDisabled (TRUE);
if (last_status) {
if (stopBeagle ())
QTimer::singleShot (1000, this, SLOT (verifyStatus ()));
TQTimer::singleShot (1000, this, TQT_SLOT (verifytqStatus ()));
} else {
if (startBeagle ())
QTimer::singleShot (5000, this, SLOT (verifyStatus ()));
TQTimer::singleShot (5000, this, TQT_SLOT (verifytqStatus ()));
}
}
void KCMBeagleStatus::verifyStatus ()
void KCMBeagletqStatus::verifytqStatus ()
{
pb_control->setEnabled (TRUE);
refreshDaemonStatus ();
refreshDaemontqStatus ();
}
bool KCMBeagleStatus::stopBeagle ()
bool KCMBeagletqStatus::stopBeagle ()
{
gboolean is_running = beagle_util_daemon_is_running ();
if (! is_running) {
@ -194,7 +194,7 @@ bool KCMBeagleStatus::stopBeagle ()
return true;
}
bool KCMBeagleStatus::startBeagle ()
bool KCMBeagletqStatus::startBeagle ()
{
gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) {

@ -23,19 +23,20 @@
#ifndef __STATUS_H__
#define __STATUS_H__
#include <qlabel.h>
#include <qgroupbox.h>
#include <qtextedit.h>
#include <tqlabel.h>
#include <tqgroupbox.h>
#include <tqtextedit.h>
#include <kcmodule.h>
#include <kpushbutton.h>
class KCMBeagleStatus : public KCModule
class KCMBeagletqStatus : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMBeagleStatus(QWidget *parent=0, const char *name=0);
~KCMBeagleStatus();
KCMBeagletqStatus(TQWidget *tqparent=0, const char *name=0);
~KCMBeagletqStatus();
virtual void load();
virtual void load( bool useDefaults );
@ -43,20 +44,20 @@ public:
virtual void defaults();
private slots:
void refreshStatus ();
void refreshtqStatus ();
void controlPressed ();
void verifyStatus ();
void verifytqStatus ();
private:
bool refreshDaemonStatus ();
bool refreshDaemontqStatus ();
bool stopBeagle ();
bool startBeagle ();
QLabel *label_control;
TQLabel *label_control;
KPushButton *pb_control, *pb_refresh;
QLabel *version_label;
QTextEdit *status_area, *index_info_box;
QGroupBox *status_box;
TQLabel *version_label;
TQTextEdit *status_area, *index_info_box;
TQGroupBox *status_box;
bool last_status;
};

@ -17,10 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/
#include <qstring.h>
#include <qstringlist.h>
#include <qdir.h>
#include <qclipboard.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqdir.h>
#include <tqclipboard.h>
#include <kfiledialog.h>
#include <kcmdlineargs.h>
#include <fcntl.h>
@ -30,9 +30,9 @@
#include <khelpmenu.h>
#include <kprocess.h>
#include <qtooltip.h>
#include <qdom.h>
#include <qtimer.h>
#include <tqtooltip.h>
#include <tqdom.h>
#include <tqtimer.h>
#include "searchdlg.h"
#include "kerryapp.h"
@ -92,55 +92,55 @@ void KerryApplication::init(const KAboutData* /*about*/)
config->setGroup("General");
hitListWindow = new SearchDlg();
QSize *defaultSize;
defaultSize = new QSize(750, 650);
TQSize *defaultSize;
defaultSize = new TQSize(750, 650);
hitListWindow->resize(config->readSizeEntry("DialogSize", defaultSize));
delete defaultSize;
connect(hitListWindow,SIGNAL(configure()),SLOT(configure()));
connect(hitListWindow,SIGNAL(readConfiguration()),SLOT(configChanged()));
connect(hitListWindow,TQT_SIGNAL(configure()),TQT_SLOT(configure()));
connect(hitListWindow,TQT_SIGNAL(readConfiguration()),TQT_SLOT(configChanged()));
hitListWindow->editSearch->setHistoryItems(config->readListEntry("History"));
hitListWindow->configChanged();
sysTrayIcon = new KSystemTray(hitListWindow);
KPopupMenu *menu = sysTrayIcon->contextMenu();
connect(menu,SIGNAL(aboutToShow()),SLOT(aboutToShowSysTrayMenu()));
connect(menu,SIGNAL(activated(int)),SLOT(historySelected(int)));
connect(menu,TQT_SIGNAL(aboutToShow()),TQT_SLOT(aboutToShowSysTrayMenu()));
connect(menu,TQT_SIGNAL(activated(int)),TQT_SLOT(historySelected(int)));
menu->insertSeparator();
menu->insertItem(SmallIconSet("history_clear"),
i18n("Clear Search History"), this,
SLOT(clearHistory()),0,HISTORY_ITEMS_CLEAR_ID);
TQT_SLOT(clearHistory()),0,HISTORY_ITEMS_CLEAR_ID);
menu->insertItem(SmallIconSet("configure"),
i18n("Configure Kerry..."), this,
SLOT(configure()));
TQT_SLOT(configure()));
/*
KHelpMenu *helpmenu = new KHelpMenu(hitListWindow, about, false);
menu->insertItem( SmallIconSet("help"), KStdGuiItem::help().text(), helpmenu->menu() );
*/
globalKeys = new KGlobalAccel(this);
globalKeys = new KGlobalAccel(TQT_TQOBJECT(this));
globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") );
KShortcut showDialogShortcut = KShortcut(ALT+Key_Space);
showDialogShortcut.append( KKey( Key_F12 ) );
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), QString::null, showDialogShortcut, showDialogShortcut, hitListWindow, SLOT(showSearchDialog()) );
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), QString::null, CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, this, SLOT(searchPrimarySelection()) );
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), TQString(), showDialogShortcut, showDialogShortcut, TQT_TQOBJECT(hitListWindow), TQT_SLOT(showSearchDialog()) );
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), TQString(), CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, TQT_TQOBJECT(this), TQT_SLOT(searchPrimarySelection()) );
configChanged();
sysTrayIcon->setPixmap(sysTrayIcon->loadIcon("kerry_systemtray"));
QToolTip::add(sysTrayIcon, i18n("Kerry Beagle Search (%1)").arg(globalKeys->shortcut("Show Kerry Dialog").seq(0).toString()));
TQToolTip::add(sysTrayIcon, i18n("Kerry Beagle Search (%1)").tqarg(globalKeys->shortcut("Show Kerry Dialog").seq(0).toString()));
sysTrayIcon->show();
sysTrayIcon->actionCollection()->action("file_quit")->setShortcut(KShortcut());
disconnect(sysTrayIcon->actionCollection()->action("file_quit"), SIGNAL(activated()), sysTrayIcon, SLOT(maybeQuit()));
connect(sysTrayIcon->actionCollection()->action("file_quit"), SIGNAL(activated()), this, SLOT(quitKerry()));
disconnect(sysTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), sysTrayIcon, TQT_SLOT(maybeQuit()));
connect(sysTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(quitKerry()));
QTimer::singleShot( 1000, this, SLOT(checkBeagleBuildIndex()));
TQTimer::singleShot( 1000, TQT_TQOBJECT(this), TQT_SLOT(checkBeagleBuildIndex()));
}
void KerryApplication::search(const QString& text)
void KerryApplication::search(const TQString& text)
{
if (hitListWindow)
hitListWindow->search(text);
@ -153,7 +153,7 @@ void KerryApplication::aboutToShowSysTrayMenu()
for (int id=HISTORY_ITEMS_START_ID;id<=HISTORY_ITEMS_START_ID+MAX_HISTORY_ITEMS;id++)
menu->removeItem(id);
QStringList searches = hitListWindow->editSearch->historyItems();
TQStringList searches = hitListWindow->editSearch->historyItems();
if (searches.count()==0) {
menu->insertItem(i18n("<No Recent Searches>"),HISTORY_ITEMS_START_ID,1);
menu->setItemEnabled(HISTORY_ITEMS_START_ID,false);
@ -177,8 +177,8 @@ void KerryApplication::historySelected(int id)
void KerryApplication::searchPrimarySelection()
{
QApplication::clipboard()->setSelectionMode( true );
QString text = QApplication::clipboard()->text();
TQApplication::tqclipboard()->setSelectionMode( true );
TQString text = TQApplication::tqclipboard()->text();
if (!text.isEmpty() && hitListWindow)
hitListWindow->search(text);
}
@ -208,15 +208,15 @@ void KerryApplication::quitKerry()
kdDebug() << "Couldn't run beagle-shutdown." << endl;
#endif
qApp->closeAllWindows();
qApp->quit();
tqApp->closeAllWindows();
tqApp->quit();
}
void KerryApplication::clearHistory()
{
hitListWindow->editSearch->clearHistory();
KConfig *config = KGlobal::config();
config->writeEntry("History",QString::null);
config->writeEntry("History",TQString());
config->sync();
}
@ -237,24 +237,24 @@ void KerryApplication::configChanged()
void KerryApplication::checkBeagleBuildIndex()
{
QDir dir("/tmp", ".beagleindexwapi*");
dir.setFilter(QDir::Dirs|QDir::Hidden);
TQDir dir("/tmp", ".beagleindexwapi*");
dir.setFilter(TQDir::Dirs|TQDir::Hidden);
QStringList entryList = dir.entryList();
TQStringList entryList = dir.entryList();
if (entryList.isEmpty())
return;
bool current_wapidir = false;
for ( QStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) {
if ( QFileInfo("tmp/"+(*it)).lastModified().date()==QDate::currentDate() ) {
for ( TQStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) {
if ( TQFileInfo("tmp/"+(*it)).lastModified().date()==TQDate::tqcurrentDate() ) {
current_wapidir=true;
break;
}
}
QString oldMessage = I18N_NOOP("The daily running process for updating the system\nwide Beagle documentation index was detected.");
QString message;
TQString oldMessage = I18N_NOOP("The daily running process for updating the system\nwide Beagle documentation index was detected.");
TQString message;
if (oldMessage==i18n(oldMessage.ascii()))
message = "The daily process that updates the search index for system documentation\n is running, which may make the system appear slower than usual.\n\nThis process should complete shortly.";

@ -24,7 +24,7 @@
#include <ksystemtray.h>
#include <kglobalaccel.h>
#define kerryApp ((KerryApplication*)qApp)
#define kerryApp ((KerryApplication*)tqApp)
#define MAX_HISTORY_ITEMS 10
class kerry;
@ -37,13 +37,14 @@ class KProcess;
class KerryApplication : public KUniqueApplication
{
Q_OBJECT
TQ_OBJECT
public:
KerryApplication();
~KerryApplication();
void init(const KAboutData* about);
int newInstance();
void search(const QString&);
void search(const TQString&);
protected:
SearchDlg* hitListWindow;

@ -21,7 +21,7 @@
#include "kerrylabel.h"
#include "hitwidget.h"
#include <qdragobject.h>
#include <tqdragobject.h>
#include <kglobalsettings.h>
#include <kurl.h>
#include <krun.h>
@ -29,22 +29,22 @@
#include <konqbookmarkmanager.h>
#include <knewmenu.h>
KerryLabel::KerryLabel (QWidget* parent, const char* name)
: KURLLabel (parent, name)
KerryLabel::KerryLabel (TQWidget* tqparent, const char* name)
: KURLLabel (tqparent, name)
{
dragInfo.state = diNone;
}
void KerryLabel::mousePressEvent(QMouseEvent* ev)
void KerryLabel::mousePressEvent(TQMouseEvent* ev)
{
if (!url().isEmpty())
{
if ( ev->button() == LeftButton)
if ( ev->button() == Qt::LeftButton)
{
dragInfo.state = diPending;
dragInfo.start = ev->pos();
}
else if (ev->button() == RightButton)
else if (ev->button() == Qt::RightButton)
{
ev->accept();
popupMenu( mapToGlobal(ev->pos()) );
@ -54,7 +54,7 @@ void KerryLabel::mousePressEvent(QMouseEvent* ev)
KURLLabel::mousePressEvent(ev);
}
void KerryLabel::mouseMoveEvent(QMouseEvent* ev)
void KerryLabel::mouseMoveEvent(TQMouseEvent* ev)
{
if (dragInfo.state == diPending) {
int distance = KGlobalSettings::dndEventDelay();
@ -67,9 +67,9 @@ void KerryLabel::mouseMoveEvent(QMouseEvent* ev)
KURLLabel::mouseMoveEvent(ev);
}
void KerryLabel::mouseReleaseEvent(QMouseEvent* ev)
void KerryLabel::mouseReleaseEvent(TQMouseEvent* ev)
{
if ( ev->button() == LeftButton)
if ( ev->button() == Qt::LeftButton)
{
dragInfo.state = diNone;
}
@ -80,14 +80,14 @@ void KerryLabel::doDrag()
{
dragInfo.state = diDragging;
const KURL kuri = KURL(url());
dragInfo.dragObject = new QTextDrag("'"+kuri.url().replace("file://",QString::null)+"'", this);
dragInfo.dragObject = new TQTextDrag("'"+kuri.url().tqreplace("file://",TQString())+"'", this);
dragInfo.dragObject->dragCopy();
// Don't delete the QTextDrag object. Qt will delete it when it's done with it.
// Don't delete the TQTextDrag object. TQt will delete it when it's done with it.
}
void KerryLabel::popupMenu( const QPoint &_global )
void KerryLabel::popupMenu( const TQPoint &_global )
{
KFileItem item( ((HitWidget*)parent())->uri(),((HitWidget*)parent())->mimetype(),KFileItem::Unknown);
KFileItem item( ((HitWidget*)tqparent())->uri(),((HitWidget*)tqparent())->mimetype(),KFileItem::Unknown);
KFileItemList _items;
_items.append( &item );

@ -24,23 +24,24 @@
#include <kurl.h>
#include <kurllabel.h>
class QTextDrag;
class TQTextDrag;
class KerryLabel : public KURLLabel
{
Q_OBJECT
TQ_OBJECT
public:
KerryLabel (QWidget* parent = 0L, const char* name = 0L);
KerryLabel (TQWidget* tqparent = 0L, const char* name = 0L);
protected:
void mousePressEvent( QMouseEvent* );
void mouseReleaseEvent( QMouseEvent* );
void mouseMoveEvent( QMouseEvent* );
void mousePressEvent( TQMouseEvent* );
void mouseReleaseEvent( TQMouseEvent* );
void mouseMoveEvent( TQMouseEvent* );
void doDrag();
protected slots:
void popupMenu( const QPoint &_global );
void popupMenu( const TQPoint &_global );
private:
KURL::List kurllist;
@ -49,8 +50,8 @@ class KerryLabel : public KURLLabel
struct _dragInfo {
DragState state;
QPoint start;
QTextDrag *dragObject;
TQPoint start;
TQTextDrag *dragObject;
} dragInfo;
};

@ -22,8 +22,8 @@
#include <kglobalsettings.h>
#include <hitwidget.h>
KWidgetListbox::KWidgetListbox(QWidget *parent, const char *name)
: QTable(parent, name)
KWidgetListbox::KWidgetListbox(TQWidget *tqparent, const char *name)
: TQTable(tqparent, name)
{
setNumRows(0);
setNumCols(1);
@ -32,12 +32,12 @@ KWidgetListbox::KWidgetListbox(QWidget *parent, const char *name)
setTopMargin(0);
horizontalHeader()->hide();
verticalHeader()->hide();
setSelectionMode(QTable::NoSelection);
setFocusStyle(QTable::FollowStyle);
connect(this, SIGNAL(currentChanged(int, int)),
this, SLOT(selectionChanged(int, int)));
setHScrollBarMode(QScrollView::AlwaysOff);
setVScrollBarMode(QScrollView::Auto);
setSelectionMode(TQTable::NoSelection);
setFocusStyle(TQTable::FollowStyle);
connect(this, TQT_SIGNAL(currentChanged(int, int)),
this, TQT_SLOT(selectionChanged(int, int)));
setHScrollBarMode(TQScrollView::AlwaysOff);
setVScrollBarMode(TQScrollView::Auto);
}
KWidgetListbox::~KWidgetListbox()
@ -52,7 +52,7 @@ void KWidgetListbox::clear()
setNumRows(0);
}
int KWidgetListbox::insertItem(QWidget* item, int index)
int KWidgetListbox::insertItem(TQWidget* item, int index)
{
int row;
@ -78,7 +78,7 @@ int KWidgetListbox::insertItem(QWidget* item, int index)
return row;
}
void KWidgetListbox::adjustSize(QWidget* item)
void KWidgetListbox::adjustSize(TQWidget* item)
{
item->setMinimumWidth( columnWidth(0) );
item->adjustSize();
@ -89,7 +89,7 @@ void KWidgetListbox::adjustSize(QWidget* item)
setRowHeight(index(item), item->height());
}
void KWidgetListbox::setSelected(QWidget* item)
void KWidgetListbox::setSelected(TQWidget* item)
{
setSelected(index(item));
}
@ -101,7 +101,7 @@ void KWidgetListbox::selectionChanged(int row, int col)
emit selected(row);
}
void KWidgetListbox::removeItem(QWidget* item)
void KWidgetListbox::removeItem(TQWidget* item)
{
removeItem(index(item));
}
@ -122,17 +122,17 @@ int KWidgetListbox::selected() const
return currentRow();
}
QWidget* KWidgetListbox::selectedItem() const
TQWidget* KWidgetListbox::selectedItem() const
{
return item(selected());
}
QWidget* KWidgetListbox::item(int index) const
TQWidget* KWidgetListbox::item(int index) const
{
return cellWidget(index, 0);
}
int KWidgetListbox::index(QWidget* itm) const
int KWidgetListbox::index(TQWidget* itm) const
{
for(int i = 0; i < numRows(); ++i)
if(item(i) == itm)
@ -168,7 +168,7 @@ void KWidgetListbox::updateColors()
void KWidgetListbox::setItemColors(int index, bool even)
{
QWidget* itm = item(index);
TQWidget* itm = item(index);
if (!itm)
return;
@ -208,14 +208,14 @@ void KWidgetListbox::showItems(show_callback func, void* data)
updateColors();
}
void KWidgetListbox::showEvent(QShowEvent*)
void KWidgetListbox::showEvent(TQShowEvent*)
{
//kdDebug() << k_funcinfo << endl;
repaintContents(false);
tqrepaintContents(false);
}
void KWidgetListbox::paintCell(QPainter*, int, int, const QRect&,
bool, const QColorGroup&)
void KWidgetListbox::paintCell(TQPainter*, int, int, const TQRect&,
bool, const TQColorGroup&)
{
//kdDebug() << k_funcinfo << endl;
}

@ -20,40 +20,41 @@
#ifndef KWIDGETLISTBOX_H
#define KWIDGETLISTBOX_H
#include <qtable.h>
#include <tqtable.h>
typedef bool (*show_callback) (int index, QWidget* widget, void* data);
typedef bool (*show_callback) (int index, TQWidget* widget, void* data);
class KWidgetListbox : public QTable
class KWidgetListbox : public TQTable
{
Q_OBJECT
TQ_OBJECT
public:
KWidgetListbox(QWidget *parent = 0, const char *name = 0);
KWidgetListbox(TQWidget *tqparent = 0, const char *name = 0);
~KWidgetListbox();
int insertItem(QWidget* item, int index = -1);
void setSelected(QWidget* item);
int insertItem(TQWidget* item, int index = -1);
void setSelected(TQWidget* item);
void setSelected(int index);
void removeItem(QWidget* item);
void removeItem(TQWidget* item);
void removeItem(int index);
void clear();
int selected() const;
QWidget* selectedItem() const;
QWidget* item(int index) const;
int index(QWidget* itm) const;
TQWidget* selectedItem() const;
TQWidget* item(int index) const;
int index(TQWidget* itm) const;
uint count() const { return numRows(); };
void showItems(show_callback func = 0, void* data = 0);
void paintCell(QPainter* p, int row, int col, const QRect& cr,
bool selected, const QColorGroup& cg);
void adjustSize(QWidget* item);
void paintCell(TQPainter* p, int row, int col, const TQRect& cr,
bool selected, const TQColorGroup& cg);
void adjustSize(TQWidget* item);
protected:
void setItemColors(int index, bool even);
void updateColors();
bool even(int index);
virtual void showEvent(QShowEvent* e);
virtual void showEvent(TQShowEvent* e);
protected slots:
void selectionChanged(int row, int col);

@ -18,16 +18,16 @@
***************************************************************************/
#include <kerryapp.h>
#include <qobject.h>
#include <qdir.h>
#include <qdom.h>
#include <tqobject.h>
#include <tqdir.h>
#include <tqdom.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kconfig.h>
#include <qfileinfo.h>
#include <qstringlist.h>
#include <tqfileinfo.h>
#include <tqstringlist.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <kdeversion.h>
@ -46,7 +46,7 @@ static KCmdLineOptions options[] =
{ 0, 0, 0 }
};
bool KSessionManaged::saveState(QSessionManager&)
bool KSessionManaged::saveState(TQSessionManager&)
{
// KConfig* config = kapp->sessionConfig();
// config->setGroup("General");
@ -55,7 +55,7 @@ bool KSessionManaged::saveState(QSessionManager&)
return true;
}
bool KSessionManaged::commitData(QSessionManager&)
bool KSessionManaged::commitData(TQSessionManager&)
{
return true;
}
@ -63,15 +63,15 @@ bool KSessionManaged::commitData(QSessionManager&)
extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
{
if (!getuid()) {
QFile file( "/root/.beagle/config/daemon.xml" );
TQFile file( "/root/.beagle/config/daemon.xml" );
bool fail = true;
if ( file.open( IO_ReadOnly ) ) {
QDomDocument doc( "mydocument" );
TQDomDocument doc( "mydocument" );
if ( doc.setContent( &file ) ) {
QDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild();
TQDomElement docElem = doc.documentElement();
TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
QDomElement e = n.toElement();
TQDomElement e = n.toElement();
if( !e.isNull() && e.tagName()=="AllowRoot")
fail = e.text()!="true";
n = n.nextSibling();

@ -29,17 +29,17 @@ Query::Query()
void Query::clear()
{
query_term = QString::null;
query_term = TQString();
alternatives.clear();
}
void Query::set(const QString &term)
void Query::set(const TQString &term)
{
query_term = term;
alternatives.clear();
current_alternative = new Alternative;
current_part = QString::null;
current_part = TQString();
within_quotes = false;
exclude_part = false;
@ -60,7 +60,7 @@ void Query::set(const QString &term)
current_alternative = new Alternative;
within_quotes = false;
exclude_part = false;
current_part = QString::null;
current_part = TQString();
}
else
current_part+=term[index];
@ -92,17 +92,17 @@ void Query::add_term() {
}
within_quotes = false;
exclude_part = false;
current_part = QString::null;
current_part = TQString();
}
QString Query::get() const
TQString Query::get() const
{
return query_term;
}
bool Query::matches(const QString &term)
bool Query::matches(const TQString &term)
{
QString lower_term = term.lower();
TQString lower_term = term.lower();
for (Alternative* alt=alternatives.first(); alt; alt=alternatives.next()) {
if (!alt->includes.count())
@ -110,8 +110,8 @@ bool Query::matches(const QString &term)
bool next_alternative = false;
for ( QStringList::ConstIterator it = alt->excludes.begin(); it != alt->excludes.end(); ++it ) {
if ( lower_term.find(*it)!=-1 ) {
for ( TQStringList::ConstIterator it = alt->excludes.begin(); it != alt->excludes.end(); ++it ) {
if ( lower_term.tqfind(*it)!=-1 ) {
next_alternative = true;
continue;
}
@ -119,8 +119,8 @@ bool Query::matches(const QString &term)
if (next_alternative)
continue;
for ( QStringList::ConstIterator it = alt->includes.begin(); it != alt->includes.end(); ++it ) {
if ( lower_term.find(*it)==-1 ) {
for ( TQStringList::ConstIterator it = alt->includes.begin(); it != alt->includes.end(); ++it ) {
if ( lower_term.tqfind(*it)==-1 ) {
next_alternative = true;
continue;
}

@ -19,17 +19,17 @@
******************************************************************/
#ifndef QUERY_H
#define QUERY_H
#ifndef TQUERY_H
#define TQUERY_H
#include <qstringlist.h>
#include <qptrlist.h>
#include <tqstringlist.h>
#include <tqptrlist.h>
class Alternative
{
public:
QStringList includes;
QStringList excludes;
TQStringList includes;
TQStringList excludes;
};
class Query
@ -37,16 +37,16 @@ class Query
public:
Query();
void clear();
void set(const QString &);
QString get() const;
bool matches(const QString &);
void set(const TQString &);
TQString get() const;
bool matches(const TQString &);
private:
QString query_term;
QPtrList<Alternative> alternatives;
TQString query_term;
TQPtrList<Alternative> alternatives;
void add_term();
QString current_part;
TQString current_part;
Alternative *current_alternative;
bool within_quotes;
bool exclude_part;

File diff suppressed because it is too large Load Diff

@ -31,7 +31,7 @@
#include <kabc/stdaddressbook.h>
class KFileItem;
class QCheckBox;
class TQCheckBox;
class KBookmarkManager;
class KBookmarkGroup;
class HitWidget;
@ -39,6 +39,7 @@ class HitWidget;
class SearchDlg : public HitsLayout, virtual public dcopIface
{
Q_OBJECT
TQ_OBJECT
enum ScopeType {
Everywhere,
@ -69,12 +70,12 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
};
public:
SearchDlg(QWidget *parent = 0, const char *name = 0);
SearchDlg(TQWidget *tqparent = 0, const char *name = 0);
~SearchDlg();
public slots:
void search(const QString& text);
void search(const QString& text, const QString& scope);
void search(const TQString& text);
void search(const TQString& text, const TQString& scope);
void showSearchDialog();
void configChanged();
@ -82,9 +83,9 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
void setDisplayAmount(int);
void setSortOrder(int);
void keyPressEvent(QKeyEvent *);
void showEvent(QShowEvent *);
bool eventFilter(QObject *obj, QEvent *e);
void keyPressEvent(TQKeyEvent *);
void showEvent(TQShowEvent *);
bool eventFilter(TQObject *obj, TQEvent *e);
signals:
void configure();
@ -97,22 +98,22 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
void slotPrevious();
void slotNext();
void search();
void searchChanged(const QString &);
void searchChanged(const TQString &);
void searchHasOutput(BeagleSearch::BeagleResultList &results);
void searchLostOutput(BeagleSearch::VanishedURIList &results);
void searchFinished();
void searchError (const QString& error);
void searchError (const TQString& error);
void sortFilterResults();
void slotOpen();
void slotOpenDir();
void slotMailTo(const QString&);
void slotOpenEvolution(const QString&);
void slotOpenThunderbird(const QString&);
void slotOpenKAddressBook(const QString&);
void slotOpenKNotes(const QString&);
void slotOpenURL(const QString&);
void slotContextMenu( int row, int col, const QPoint & pos );
void slotPreview(const KFileItem *, const QPixmap &);
void slotMailTo(const TQString&);
void slotOpenEvolution(const TQString&);
void slotOpenThunderbird(const TQString&);
void slotOpenKAddressBook(const TQString&);
void slotOpenKNotes(const TQString&);
void slotOpenURL(const TQString&);
void slotContextMenu( int row, int col, const TQPoint & pos );
void slotPreview(const KFileItem *, const TQPixmap &);
void slotPreviewResult();
void slotCleanClientList ();
void itemUncollapsed(HitWidget*);
@ -121,8 +122,8 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
BeagleSearch* beagle_search;
Query current_query;
QPtrList<BeagleSearch> toclean_client_list;
QMutex toclean_list_mutex;
TQPtrList<BeagleSearch> toclean_client_list;
TQMutex toclean_list_mutex;
int current_beagle_client_id;
BeagleSearch::BeagleResultList results, displayed_results, new_results;
@ -131,31 +132,31 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
int defaultSortOrder,currentSortOrder;
void insertResult(BeagleSearch::beagle_result_struct *result,int index);
void fillTableHits();
void updateStatus();
void updatetqStatus();
void showQuickTips();
QString formatBytes(QString& bytesStr) const;
QCheckBox* cb_beagleStart;
TQString formatBytes(TQString& bytesStr) const;
TQCheckBox* cb_beagleStart;
bool beagleJustStarted;
void customEvent (QCustomEvent *e);
void customEvent (TQCustomEvent *e);
bool pending_showQuickTips;
void displayResults(BeagleSearch::BeagleResultList &items);
bool mimeTypeMatch( const QString& mimeType, const QStringList& mimeList ) const;
bool mimeTypeMatch( const TQString& mimeType, const TQStringList& mimeList ) const;
bool canPreview( KFileItem* item );
void updatePreviewMimeTypes();
QStringList* pPreviewMimeTypes;
TQStringList* pPreviewMimeTypes;
KIO::PreviewJob *pPreviewJob;
void startPreview( const KFileItemList& items );
void stopPreview();
KFileItemList previewItems;
QString takeProperty( const QString& property, QStringList& propertyList);
QDateTime datetimeFromString( const QString& );
TQString takeProperty( const TQString& property, TQStringList& propertyList);
TQDateTime datetimeFromString( const TQString& );
QRegExp encodingRegexp;
TQRegExp encodingRegexp;
void searchProgramList(QString relPath);
bool checkUriInResults(const QString& path) const;
void searchProgramList(TQString relPath);
bool checkUriInResults(const TQString& path) const;
KBookmarkManager *bookmarkManager;
KABC::AddressBook* m_addressBook;
@ -166,7 +167,7 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
DateRange dateRange;
bool showBigTiles;
bool ensureServiceRunning(const QString & name);
bool ensureServiceRunning(const TQString & name);
bool still_searching;
};

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>HitsLayout</class>
<widget class="QDialog">
<widget class="TQDialog">
<property name="name">
<cstring>HitsLayout</cstring>
</property>
@ -12,7 +12,7 @@
<height>898</height>
</rect>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -37,7 +37,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>480</width>
<height>440</height>
@ -47,9 +47,9 @@
<enum>StrongFocus</enum>
</property>
</widget>
<widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
<widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>layout8</cstring>
<cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
@ -67,7 +67,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>24</width>
<height>24</height>
@ -83,7 +83,7 @@
<string>Clear the search term and results</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelSearch</cstring>
</property>
@ -107,14 +107,14 @@
</sizepolicy>
</property>
</widget>
<widget class="QToolButton">
<widget class="TQToolButton">
<property name="name">
<cstring>buttonFind</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -130,7 +130,7 @@
<string>Start the search for entered term</string>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>m_searchPixmap</cstring>
</property>
@ -142,13 +142,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>32</width>
<height>32</height>
@ -166,17 +166,17 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget" row="2" column="0">
<widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout5</cstring>
<cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelStatus</cstring>
<cstring>labeltqStatus</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@ -189,7 +189,7 @@
<property name="text">
<string>Results &lt;b&gt;%1 through %2 of %3&lt;/b&gt; are shown.</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -203,7 +203,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@ -225,7 +225,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -256,7 +256,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -274,15 +274,15 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget" row="1" column="1" rowspan="2" colspan="1">
<widget class="TQLayoutWidget" row="1" column="1" rowspan="2" colspan="1">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>frame3</cstring>
</property>
@ -304,7 +304,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@ -329,7 +329,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>40</width>
<height>0</height>
@ -345,7 +345,7 @@
<enum>Horizontal</enum>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showEverything</cstring>
</property>
@ -357,95 +357,95 @@
<property name="text">
<string>Everything</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showApplications</cstring>
</property>
<property name="text">
<string>Applications</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showContacts</cstring>
</property>
<property name="text">
<string>Contacts</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showDocuments</cstring>
</property>
<property name="text">
<string>Office Documents</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showConversations</cstring>
</property>
<property name="text">
<string>Conversations</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showImages</cstring>
</property>
<property name="text">
<string>Images</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showMedia</cstring>
</property>
<property name="text">
<string>Media</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showWebPages</cstring>
</property>
<property name="text">
<string>Web Pages</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showFilePathName</cstring>
</property>
<property name="text">
<string>File/Path Name</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -459,14 +459,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@ -491,7 +491,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>40</width>
<height>0</height>
@ -507,7 +507,7 @@
<enum>Horizontal</enum>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>sortByType</cstring>
</property>
@ -519,40 +519,40 @@
<property name="text">
<string>Type</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>sortByDate</cstring>
</property>
<property name="text">
<string>Date</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>sortByName</cstring>
</property>
<property name="text">
<string>Name</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>sortByRelevance</cstring>
</property>
<property name="text">
<string>Relevance</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -566,14 +566,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@ -598,7 +598,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>40</width>
<height>0</height>
@ -614,7 +614,7 @@
<enum>Horizontal</enum>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showAnyDate</cstring>
</property>
@ -626,62 +626,62 @@
<property name="text">
<string>Any Date</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showToday</cstring>
</property>
<property name="text">
<string>Today</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showSinceYesterday</cstring>
</property>
<property name="text">
<string>Since Yesterday</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showThisWeek</cstring>
</property>
<property name="text">
<string>This Week</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showThisMonth</cstring>
</property>
<property name="text">
<string>This Month</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>showThisYear</cstring>
</property>
<property name="text">
<string>This Year</string>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -695,7 +695,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>1</height>
@ -704,9 +704,9 @@
</spacer>
</vbox>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
<cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@ -722,7 +722,7 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>0</width>
<height>20</height>
@ -741,7 +741,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -766,7 +766,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -849,14 +849,14 @@
<slot access="public" specifier="">update()</slot>
<slot access="public" specifier="">update(int,int,int,int)</slot>
<slot access="public" specifier="">update(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint()</slot>
<slot access="public" specifier="">repaint(bool)</slot>
<slot access="public" specifier="">repaint(int,int,int,int)</slot>
<slot access="public" specifier="">repaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">tqrepaint()</slot>
<slot access="public" specifier="">tqrepaint(bool)</slot>
<slot access="public" specifier="">tqrepaint(int,int,int,int)</slot>
<slot access="public" specifier="">tqrepaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">tqrepaint(const QRect&amp;)</slot>
<slot access="public" specifier="">tqrepaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">tqrepaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">tqrepaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">show()</slot>
<slot access="public" specifier="">hide()</slot>
<slot access="public" specifier="">setShown(bool)</slot>
@ -897,7 +897,7 @@
<slot access="public" specifier="">setPalette(const QPalette&amp;)</slot>
<slot access="public" specifier="">setSelection(int,int)</slot>
<slot access="public" specifier="">setCursorPosition(int)</slot>
<slot access="public" specifier="">setAlignment(int)</slot>
<slot access="public" specifier="">tqsetAlignment(int)</slot>
<slot access="public" specifier="">cut()</slot>
<slot access="public" specifier="">copy()</slot>
<slot access="public" specifier="">paste()</slot>
@ -921,10 +921,10 @@
<slot access="private" specifier="">setTextWorkaround(const QString&amp;)</slot>
<property type="CString">name</property>
<property type="Bool">enabled</property>
<property type="Rect">geometry</property>
<property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property>
<property type="Size">minimumSize</property>
<property type="Size">maximumSize</property>
<property type="Size">tqminimumSize</property>
<property type="Size">tqmaximumSize</property>
<property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property>
@ -950,7 +950,7 @@
<property type="Bool">frame</property>
<property type="EchoMode">echoMode</property>
<property type="Int">cursorPosition</property>
<property type="Alignment">alignment</property>
<property type="Alignment">tqalignment</property>
<property type="Bool">dragEnabled</property>
<property type="Bool">readOnly</property>
<property type="String">inputMask</property>
@ -995,14 +995,14 @@
<slot access="public" specifier="">update()</slot>
<slot access="public" specifier="">update(int,int,int,int)</slot>
<slot access="public" specifier="">update(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint()</slot>
<slot access="public" specifier="">repaint(bool)</slot>
<slot access="public" specifier="">repaint(int,int,int,int)</slot>
<slot access="public" specifier="">repaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">tqrepaint()</slot>
<slot access="public" specifier="">tqrepaint(bool)</slot>
<slot access="public" specifier="">tqrepaint(int,int,int,int)</slot>
<slot access="public" specifier="">tqrepaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">tqrepaint(const QRect&amp;)</slot>
<slot access="public" specifier="">tqrepaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">tqrepaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">tqrepaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">show()</slot>
<slot access="public" specifier="">hide()</slot>
<slot access="public" specifier="">setShown(bool)</slot>
@ -1036,10 +1036,10 @@
<slot access="private" specifier="">slotSettingsChanged(int)</slot>
<property type="CString">name</property>
<property type="Bool">enabled</property>
<property type="Rect">geometry</property>
<property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property>
<property type="Size">minimumSize</property>
<property type="Size">maximumSize</property>
<property type="Size">tqminimumSize</property>
<property type="Size">tqmaximumSize</property>
<property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property>
@ -1096,8 +1096,8 @@
<includes>
<include location="local" impldecl="in implementation">searchdlg_layout.ui.h</include>
</includes>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<tqlayoutdefaults spacing="6" margin="11"/>
<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints>
<includehint>kwidgetlistbox.h</includehint>
<includehint>kpushbutton.h</includehint>

Loading…
Cancel
Save