Rename old tq methods that no longer need a unique name

pull/4/head
Timothy Pearson 13 years ago
parent 20d069ce4f
commit df8ca9f120

@ -48,7 +48,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>1</height> <height>1</height>
@ -73,7 +73,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>2</height> <height>2</height>
@ -92,13 +92,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
@ -143,7 +143,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>0</height> <height>0</height>
@ -162,7 +162,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>20</height> <height>20</height>
@ -179,7 +179,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>20</height> <height>20</height>
@ -218,7 +218,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>210</width> <width>210</width>
<height>1</height> <height>1</height>
@ -251,7 +251,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -328,7 +328,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>0</height> <height>0</height>
@ -351,7 +351,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>0</height> <height>0</height>

@ -102,7 +102,7 @@ void KCMBeagleBackends::save()
void KCMBeagleBackends::gotAvailableBackends(KProcess*, char *buffer, int len) void KCMBeagleBackends::gotAvailableBackends(KProcess*, char *buffer, int len)
{ {
TQString myBuf = TQString::tqfromLatin1(buffer, len); TQString myBuf = TQString::fromLatin1(buffer, len);
if (myBuf.startsWith("User:")) { if (myBuf.startsWith("User:")) {
TQStringList list = TQStringList::split('\n',myBuf); TQStringList list = TQStringList::split('\n',myBuf);
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )

@ -46,7 +46,7 @@ KCMBeagle::KCMBeagle(TQWidget *parent, const char *name)
m_backends = new KCMBeagleBackends( m_tab, name ); m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->tqlayout()->setMargin( KDialog::marginHint() ); m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagletqStatus( m_tab, name ); m_status = new KCMBeagleStatus( m_tab, name );
m_status->tqlayout()->setMargin( KDialog::marginHint() ); m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_indexing, i18n("&Indexing")); m_tab->addTab(m_indexing, i18n("&Indexing"));

@ -51,7 +51,7 @@ KCMKerry::KCMKerry(TQWidget *parent, const char *name)
m_backends = new KCMBeagleBackends( m_tab, name ); m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->tqlayout()->setMargin( KDialog::marginHint() ); m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagletqStatus( m_tab, name ); m_status = new KCMBeagleStatus( m_tab, name );
m_status->tqlayout()->setMargin( KDialog::marginHint() ); m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_search, i18n("&Search")); m_tab->addTab(m_search, i18n("&Search"));

@ -36,7 +36,7 @@ extern "C" {
#include <beagle/beagle.h> #include <beagle/beagle.h>
} }
KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *parent, const char * ) KCMBeagleStatus::KCMBeagleStatus(TQWidget *parent, const char * )
: KCModule(parent, "kcmbeaglestatus") : KCModule(parent, "kcmbeaglestatus")
{ {
TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
@ -71,29 +71,29 @@ KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *parent, const char * )
dummy = new TQWidget( footer_box ); dummy = new TQWidget( footer_box );
footer_box->setStretchFactor( dummy, 1 ); footer_box->setStretchFactor( dummy, 1 );
pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box); pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box);
connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshtqStatus ()) ); connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshStatus ()) );
g_type_init (); g_type_init ();
refreshtqStatus (); refreshStatus ();
load(); load();
} }
KCMBeagletqStatus::~KCMBeagletqStatus() KCMBeagleStatus::~KCMBeagleStatus()
{ {
} }
void KCMBeagletqStatus::load() void KCMBeagleStatus::load()
{ {
load( false ); load( false );
} }
void KCMBeagletqStatus::load( bool useDefaults ) void KCMBeagleStatus::load( bool useDefaults )
{ {
emit changed( useDefaults ); emit changed( useDefaults );
} }
void KCMBeagletqStatus::defaults() void KCMBeagleStatus::defaults()
{ {
// if (!beagle_util_daemon_is_running ()) // if (!beagle_util_daemon_is_running ())
// controlPressed(); // controlPressed();
@ -101,12 +101,12 @@ void KCMBeagletqStatus::defaults()
load( true ); load( true );
} }
void KCMBeagletqStatus::save() void KCMBeagleStatus::save()
{ {
} }
bool KCMBeagletqStatus::refreshDaemontqStatus () bool KCMBeagleStatus::refreshDaemonStatus ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) { if (is_running) {
@ -121,12 +121,12 @@ bool KCMBeagletqStatus::refreshDaemontqStatus ()
return is_running; return is_running;
} }
void KCMBeagletqStatus::refreshtqStatus () void KCMBeagleStatus::refreshStatus ()
{ {
pb_refresh->setDisabled (TRUE); pb_refresh->setDisabled (TRUE);
bool is_running = refreshDaemontqStatus (); bool is_running = refreshDaemonStatus ();
status_box->setTitle ( TQString ("[%1] ").arg (TQDateTime::tqcurrentDateTime ().toString ()) ); status_box->setTitle ( TQString ("[%1] ").arg (TQDateTime::currentDateTime ().toString ()) );
if (! is_running) { if (! is_running) {
version_label->setText (i18n("Service not started.")); version_label->setText (i18n("Service not started."));
pb_refresh->setDisabled (FALSE); pb_refresh->setDisabled (FALSE);
@ -157,25 +157,25 @@ void KCMBeagletqStatus::refreshtqStatus ()
pb_refresh->setDisabled (FALSE); pb_refresh->setDisabled (FALSE);
} }
void KCMBeagletqStatus::controlPressed () void KCMBeagleStatus::controlPressed ()
{ {
pb_control->setDisabled (TRUE); pb_control->setDisabled (TRUE);
if (last_status) { if (last_status) {
if (stopBeagle ()) if (stopBeagle ())
TQTimer::singleShot (1000, this, TQT_SLOT (verifytqStatus ())); TQTimer::singleShot (1000, this, TQT_SLOT (verifyStatus ()));
} else { } else {
if (startBeagle ()) if (startBeagle ())
TQTimer::singleShot (5000, this, TQT_SLOT (verifytqStatus ())); TQTimer::singleShot (5000, this, TQT_SLOT (verifyStatus ()));
} }
} }
void KCMBeagletqStatus::verifytqStatus () void KCMBeagleStatus::verifyStatus ()
{ {
pb_control->setEnabled (TRUE); pb_control->setEnabled (TRUE);
refreshDaemontqStatus (); refreshDaemonStatus ();
} }
bool KCMBeagletqStatus::stopBeagle () bool KCMBeagleStatus::stopBeagle ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (! is_running) { if (! is_running) {
@ -194,7 +194,7 @@ bool KCMBeagletqStatus::stopBeagle ()
return true; return true;
} }
bool KCMBeagletqStatus::startBeagle () bool KCMBeagleStatus::startBeagle ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) { if (is_running) {

@ -29,14 +29,14 @@
#include <kcmodule.h> #include <kcmodule.h>
#include <kpushbutton.h> #include <kpushbutton.h>
class KCMBeagletqStatus : public KCModule class KCMBeagleStatus : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KCMBeagletqStatus(TQWidget *parent=0, const char *name=0); KCMBeagleStatus(TQWidget *parent=0, const char *name=0);
~KCMBeagletqStatus(); ~KCMBeagleStatus();
virtual void load(); virtual void load();
virtual void load( bool useDefaults ); virtual void load( bool useDefaults );
@ -44,12 +44,12 @@ public:
virtual void defaults(); virtual void defaults();
private slots: private slots:
void refreshtqStatus (); void refreshStatus ();
void controlPressed (); void controlPressed ();
void verifytqStatus (); void verifyStatus ();
private: private:
bool refreshDaemontqStatus (); bool refreshDaemonStatus ();
bool stopBeagle (); bool stopBeagle ();
bool startBeagle (); bool startBeagle ();

@ -247,7 +247,7 @@ void KerryApplication::checkBeagleBuildIndex()
bool current_wapidir = false; bool current_wapidir = false;
for ( TQStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) { for ( TQStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) {
if ( TQFileInfo("tmp/"+(*it)).lastModified().date()==TQDate::tqcurrentDate() ) { if ( TQFileInfo("tmp/"+(*it)).lastModified().date()==TQDate::currentDate() ) {
current_wapidir=true; current_wapidir=true;
break; break;
} }

@ -127,13 +127,13 @@ static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplication
displayed_results.clear(); displayed_results.clear();
displayAmount = 5; displayAmount = 5;
displayOffset = 0; displayOffset = 0;
labeltqStatus->tqsetAlignment(TQt::SingleLine); labelStatus->setAlignment(TQt::SingleLine);
pPreviewJob = 0; pPreviewJob = 0;
pPreviewMimeTypes = 0; pPreviewMimeTypes = 0;
previewItems.clear(); previewItems.clear();
previewItems.setAutoDelete(true); previewItems.setAutoDelete(true);
pending_showQuickTips=true; pending_showQuickTips=true;
updatetqStatus(); updateStatus();
defaultSortOrder = Modified; defaultSortOrder = Modified;
currentSortOrder = defaultSortOrder; currentSortOrder = defaultSortOrder;
kapp->dcopClient()->setDefaultObject( objId() ); kapp->dcopClient()->setDefaultObject( objId() );
@ -190,7 +190,7 @@ void SearchDlg::showQuickTips()
tableHits->insertItem(item); tableHits->insertItem(item);
labeltqStatus->setText(""); labelStatus->setText("");
} }
void SearchDlg::search(const TQString & search) void SearchDlg::search(const TQString & search)
@ -253,7 +253,7 @@ void SearchDlg::setDisplayAmount(int amount)
tableHits->setUpdatesEnabled(false); tableHits->setUpdatesEnabled(false);
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
updatetqStatus(); updateStatus();
} }
void SearchDlg::setSortOrder(int order) void SearchDlg::setSortOrder(int order)
@ -296,7 +296,7 @@ void SearchDlg::slotClear()
tableHits->clear(); tableHits->clear();
displayed_results.clear(); displayed_results.clear();
results.clear(); results.clear();
updatetqStatus(); updateStatus();
} }
void SearchDlg::slotPrevious() void SearchDlg::slotPrevious()
@ -308,7 +308,7 @@ void SearchDlg::slotPrevious()
tableHits->setUpdatesEnabled(false); tableHits->setUpdatesEnabled(false);
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
updatetqStatus(); updateStatus();
} }
void SearchDlg::slotNext() void SearchDlg::slotNext()
@ -320,7 +320,7 @@ void SearchDlg::slotNext()
tableHits->setUpdatesEnabled(false); tableHits->setUpdatesEnabled(false);
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
updatetqStatus(); updateStatus();
} }
void SearchDlg::sortFilterResults() void SearchDlg::sortFilterResults()
@ -330,7 +330,7 @@ void SearchDlg::sortFilterResults()
tableHits->clear(); tableHits->clear();
displayed_results.clear(); displayed_results.clear();
displayResults(results); displayResults(results);
updatetqStatus(); updateStatus();
} }
void SearchDlg::fillTableHits() void SearchDlg::fillTableHits()
@ -359,11 +359,11 @@ void SearchDlg::fillTableHits()
} }
} }
void SearchDlg::updatetqStatus() void SearchDlg::updateStatus()
{ {
buttonPrevious->setEnabled(displayOffset>0); buttonPrevious->setEnabled(displayOffset>0);
buttonNext->setEnabled(displayOffset+displayAmount<(int)displayed_results.count()); buttonNext->setEnabled(displayOffset+displayAmount<(int)displayed_results.count());
labeltqStatus->tqsetAlignment(TQt::SingleLine); labelStatus->setAlignment(TQt::SingleLine);
const int count = displayed_results.count(); const int count = displayed_results.count();
TQString text; TQString text;
if (displayAmount==1) if (displayAmount==1)
@ -380,7 +380,7 @@ void SearchDlg::updatetqStatus()
text=text+" <b>"+i18n("(still searching)")+"</b>"; text=text+" <b>"+i18n("(still searching)")+"</b>";
#endif #endif
labeltqStatus->setText(text); labelStatus->setText(text);
} }
void SearchDlg::search() void SearchDlg::search()
@ -415,12 +415,12 @@ void SearchDlg::search()
connect(buttonStart, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotStartBeagle())); connect(buttonStart, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotStartBeagle()));
tableHits->insertItem(item); tableHits->insertItem(item);
labeltqStatus->setText(""); labelStatus->setText("");
return; return;
} }
slotClear(); slotClear();
labeltqStatus->setText(i18n("Searching...")); labelStatus->setText(i18n("Searching..."));
// Beagle search // Beagle search
if (beagle_search != NULL) { if (beagle_search != NULL) {
@ -587,7 +587,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
title = takeProperty("Title",_properties); title = takeProperty("Title",_properties);
headerFileLabel->setText(title.isEmpty() ? i18n("Untitled Page") : title); headerFileLabel->setText(title.isEmpty() ? i18n("Untitled Page") : title);
headerFileLabel->tqsetAlignment(headerFileLabel->tqalignment() | TQt::SingleLine); headerFileLabel->setAlignment(headerFileLabel->tqalignment() | TQt::SingleLine);
headerFileLabel->setURL(*(result->uri)); headerFileLabel->setURL(*(result->uri));
item->insertHeaderWidget(0,headerFileLabel); item->insertHeaderWidget(0,headerFileLabel);
connect(headerFileLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen())); connect(headerFileLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen()));
@ -604,7 +604,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("Weblog:")); headerLabel->setText(i18n("Weblog:"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(0,headerLabel); item->insertHeaderWidget(0,headerLabel);
TQStringList _properties(result->properties); TQStringList _properties(result->properties);
@ -615,7 +615,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
KerryLabel *headerFileLabel = new KerryLabel(item); KerryLabel *headerFileLabel = new KerryLabel(item);
headerFileLabel->setText(title.isEmpty() ? i18n("Untitled Entry") : title); headerFileLabel->setText(title.isEmpty() ? i18n("Untitled Entry") : title);
headerFileLabel->tqsetAlignment(headerFileLabel->tqalignment() | TQt::SingleLine); headerFileLabel->setAlignment(headerFileLabel->tqalignment() | TQt::SingleLine);
headerFileLabel->setURL(identifier); headerFileLabel->setURL(identifier);
item->insertHeaderWidget(1,headerFileLabel); item->insertHeaderWidget(1,headerFileLabel);
connect(headerFileLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen())); connect(headerFileLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen()));
@ -654,7 +654,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
KerryLabel *headerNoteLabel = new KerryLabel(item); KerryLabel *headerNoteLabel = new KerryLabel(item);
headerNoteLabel->setText(title.isEmpty() ? i18n("Untitled Entry") : title); headerNoteLabel->setText(title.isEmpty() ? i18n("Untitled Entry") : title);
headerNoteLabel->tqsetAlignment(headerNoteLabel->tqalignment() | TQt::SingleLine); headerNoteLabel->setAlignment(headerNoteLabel->tqalignment() | TQt::SingleLine);
headerNoteLabel->setURL(item->uri()); headerNoteLabel->setURL(item->uri());
item->insertHeaderWidget(0,headerNoteLabel); item->insertHeaderWidget(0,headerNoteLabel);
connect(headerNoteLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen())); connect(headerNoteLabel, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotOpen()));
@ -801,7 +801,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("From")); headerLabel->setText(i18n("From"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(1,headerLabel); item->insertHeaderWidget(1,headerLabel);
KerryLabel *headerFromLabel = new KerryLabel(item); KerryLabel *headerFromLabel = new KerryLabel(item);
@ -825,7 +825,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("Application:")); headerLabel->setText(i18n("Application:"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(0,headerLabel); item->insertHeaderWidget(0,headerLabel);
KerryLabel *headerFileLabel = new KerryLabel(item); KerryLabel *headerFileLabel = new KerryLabel(item);
@ -881,12 +881,12 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
{ {
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("From")); headerLabel->setText(i18n("From"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(1,headerLabel); item->insertHeaderWidget(1,headerLabel);
KerryLabel *headerFileLabel = new KerryLabel(item); KerryLabel *headerFileLabel = new KerryLabel(item);
headerFileLabel->setText(homepage); headerFileLabel->setText(homepage);
headerFileLabel->tqsetAlignment(headerFileLabel->tqalignment() | TQt::SingleLine); headerFileLabel->setAlignment(headerFileLabel->tqalignment() | TQt::SingleLine);
headerFileLabel->setURL(homepage); headerFileLabel->setURL(homepage);
item->insertHeaderWidget(2,headerFileLabel); item->insertHeaderWidget(2,headerFileLabel);
connect(headerFileLabel, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(slotOpenURL(const TQString&))); connect(headerFileLabel, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(slotOpenURL(const TQString&)));
@ -965,7 +965,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("In Folder")); headerLabel->setText(i18n("In Folder"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(1,headerLabel); item->insertHeaderWidget(1,headerLabel);
KerryLabel *headerDirLabel = new KerryLabel(item); KerryLabel *headerDirLabel = new KerryLabel(item);
@ -1028,7 +1028,7 @@ void SearchDlg::insertResult(BeagleSearch::beagle_result_struct *result,int inde
TQLabel *headerLabel = new TQLabel(item); TQLabel *headerLabel = new TQLabel(item);
headerLabel->setText(i18n("In Folder")); headerLabel->setText(i18n("In Folder"));
headerLabel->tqsetAlignment(headerLabel->tqalignment() | TQt::SingleLine); headerLabel->setAlignment(headerLabel->tqalignment() | TQt::SingleLine);
item->insertHeaderWidget(1,headerLabel); item->insertHeaderWidget(1,headerLabel);
KerryLabel *headerDirLabel = new KerryLabel(item); KerryLabel *headerDirLabel = new KerryLabel(item);
@ -1173,21 +1173,21 @@ void SearchDlg::displayResults(BeagleSearch::BeagleResultList &items)
show = true; show = true;
break; break;
case Today: case Today:
show = ( datetime.date()==TQDate::tqcurrentDate() ); show = ( datetime.date()==TQDate::currentDate() );
break; break;
case SinceYesterday: case SinceYesterday:
show = ( datetime.date()>TQDate::tqcurrentDate().addDays(-1) ); show = ( datetime.date()>TQDate::currentDate().addDays(-1) );
break; break;
case ThisWeek: case ThisWeek:
show = ( datetime.date().year()==TQDate::tqcurrentDate().year() && show = ( datetime.date().year()==TQDate::currentDate().year() &&
datetime.date().weekNumber()==TQDate::tqcurrentDate().weekNumber() ); datetime.date().weekNumber()==TQDate::currentDate().weekNumber() );
break; break;
case ThisMonth: case ThisMonth:
show = ( datetime.date().year()==TQDate::tqcurrentDate().year() && show = ( datetime.date().year()==TQDate::currentDate().year() &&
datetime.date().month()==TQDate::tqcurrentDate().month() ); datetime.date().month()==TQDate::currentDate().month() );
break; break;
case ThisYear: case ThisYear:
show = ( datetime.date().year()==TQDate::tqcurrentDate().year() ); show = ( datetime.date().year()==TQDate::currentDate().year() );
break; break;
default: default:
break; break;
@ -1238,7 +1238,7 @@ void SearchDlg::displayResults(BeagleSearch::BeagleResultList &items)
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
} }
updatetqStatus(); updateStatus();
} }
void SearchDlg::slotOpen() void SearchDlg::slotOpen()
@ -1428,7 +1428,7 @@ void SearchDlg::searchLostOutput(BeagleSearch::VanishedURIList &items)
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
} }
updatetqStatus(); updateStatus();
} }
void SearchDlg::searchFinished() void SearchDlg::searchFinished()
@ -1438,7 +1438,7 @@ void SearchDlg::searchFinished()
still_searching = false; still_searching = false;
if (displayed_results.count()) { if (displayed_results.count()) {
updatetqStatus(); updateStatus();
return; return;
} }
@ -1464,7 +1464,7 @@ void SearchDlg::searchFinished()
beagleJustStarted = false; beagleJustStarted = false;
} }
item->setDescriptionText(text+"</qt>"); item->setDescriptionText(text+"</qt>");
labeltqStatus->setText(""); labelStatus->setText("");
tableHits->insertItem(item); tableHits->insertItem(item);
} }
@ -1570,7 +1570,7 @@ void SearchDlg::keyPressEvent(TQKeyEvent *e)
tableHits->setUpdatesEnabled(false); tableHits->setUpdatesEnabled(false);
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
updatetqStatus(); updateStatus();
} }
else else
slotNext(); slotNext();
@ -1584,7 +1584,7 @@ void SearchDlg::keyPressEvent(TQKeyEvent *e)
tableHits->setUpdatesEnabled(false); tableHits->setUpdatesEnabled(false);
fillTableHits(); fillTableHits();
tableHits->setUpdatesEnabled(true); tableHits->setUpdatesEnabled(true);
updatetqStatus(); updateStatus();
} }
else else
slotPrevious(); slotPrevious();

@ -132,7 +132,7 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
int defaultSortOrder,currentSortOrder; int defaultSortOrder,currentSortOrder;
void insertResult(BeagleSearch::beagle_result_struct *result,int index); void insertResult(BeagleSearch::beagle_result_struct *result,int index);
void fillTableHits(); void fillTableHits();
void updatetqStatus(); void updateStatus();
void showQuickTips(); void showQuickTips();
TQString formatBytes(TQString& bytesStr) const; TQString formatBytes(TQString& bytesStr) const;
TQCheckBox* cb_beagleStart; TQCheckBox* cb_beagleStart;

@ -12,7 +12,7 @@
<height>898</height> <height>898</height>
</rect> </rect>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -37,7 +37,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>480</width> <width>480</width>
<height>440</height> <height>440</height>
@ -67,7 +67,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -114,7 +114,7 @@
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -142,13 +142,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>32</width> <width>32</width>
<height>32</height> <height>32</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32</width> <width>32</width>
<height>32</height> <height>32</height>
@ -176,7 +176,7 @@
</property> </property>
<widget class="TQLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>labeltqStatus</cstring> <cstring>labelStatus</cstring>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy> <sizepolicy>
@ -203,7 +203,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -225,7 +225,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -256,7 +256,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -329,7 +329,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -459,7 +459,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -491,7 +491,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -566,7 +566,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -598,7 +598,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -695,7 +695,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>1</height> <height>1</height>
@ -722,7 +722,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>0</width> <width>0</width>
<height>20</height> <height>20</height>
@ -741,7 +741,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -766,7 +766,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -897,7 +897,7 @@
<slot access="public" specifier="">setPalette(const QPalette&amp;)</slot> <slot access="public" specifier="">setPalette(const QPalette&amp;)</slot>
<slot access="public" specifier="">setSelection(int,int)</slot> <slot access="public" specifier="">setSelection(int,int)</slot>
<slot access="public" specifier="">setCursorPosition(int)</slot> <slot access="public" specifier="">setCursorPosition(int)</slot>
<slot access="public" specifier="">tqsetAlignment(int)</slot> <slot access="public" specifier="">setAlignment(int)</slot>
<slot access="public" specifier="">cut()</slot> <slot access="public" specifier="">cut()</slot>
<slot access="public" specifier="">copy()</slot> <slot access="public" specifier="">copy()</slot>
<slot access="public" specifier="">paste()</slot> <slot access="public" specifier="">paste()</slot>
@ -923,8 +923,8 @@
<property type="Bool">enabled</property> <property type="Bool">enabled</property>
<property type="Rect">tqgeometry</property> <property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property> <property type="SizePolicy">sizePolicy</property>
<property type="Size">tqminimumSize</property> <property type="Size">minimumSize</property>
<property type="Size">tqmaximumSize</property> <property type="Size">maximumSize</property>
<property type="Size">sizeIncrement</property> <property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property> <property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property> <property type="Color">paletteForegroundColor</property>
@ -1038,8 +1038,8 @@
<property type="Bool">enabled</property> <property type="Bool">enabled</property>
<property type="Rect">tqgeometry</property> <property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property> <property type="SizePolicy">sizePolicy</property>
<property type="Size">tqminimumSize</property> <property type="Size">minimumSize</property>
<property type="Size">tqmaximumSize</property> <property type="Size">maximumSize</property>
<property type="Size">sizeIncrement</property> <property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property> <property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property> <property type="Color">paletteForegroundColor</property>

Loading…
Cancel
Save