Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent e455f84895
commit deb642e11a

@ -24,7 +24,7 @@
Chart::Chart(TQWidget* parent, const double* uploadBuffer, const double* downloadBuffer, int bufferSize, const int* ptr, const double* maxspeed) : TQWidget(parent), mUplBuffer(uploadBuffer), mDldBuffer(downloadBuffer), mBufferSize(bufferSize), mPtr(ptr), mMaxSpeed(maxspeed) { Chart::Chart(TQWidget* parent, const double* uploadBuffer, const double* downloadBuffer, int bufferSize, const int* ptr, const double* maxspeed) : TQWidget(parent), mUplBuffer(uploadBuffer), mDldBuffer(downloadBuffer), mBufferSize(bufferSize), mPtr(ptr), mMaxSpeed(maxspeed) {
setWFlags(TQt::WNoAutoErase); setWFlags(TQt::WNoAutoErase);
tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
} }
void Chart::paintEvent(TQPaintEvent*) { void Chart::paintEvent(TQPaintEvent*) {

@ -28,7 +28,7 @@ class TQPaintEvent;
class Chart : public TQWidget { class Chart : public TQWidget {
public: public:
Chart(TQWidget* parent, const double* uploadBuffer, const double* downloadBuffer, int bufferSize, const int* ptr, const double* maxspeed); Chart(TQWidget* parent, const double* uploadBuffer, const double* downloadBuffer, int bufferSize, const int* ptr, const double* maxspeed);
TQSize tqsizeHint() { return TQSize(200, 100); } TQSize sizeHint() { return TQSize(200, 100); }
protected: protected:
void paintEvent( TQPaintEvent* ev ); void paintEvent( TQPaintEvent* ev );

@ -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>120</width> <width>120</width>
<height>20</height> <height>20</height>
@ -190,7 +190,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>20</height> <height>20</height>
@ -219,7 +219,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -239,7 +239,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>20</height> <height>20</height>
@ -258,7 +258,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -278,7 +278,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>20</height> <height>20</height>
@ -297,7 +297,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -317,7 +317,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>20</height> <height>20</height>
@ -336,7 +336,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -356,7 +356,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>20</height> <height>20</height>
@ -375,7 +375,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -397,7 +397,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>20</height> <height>20</height>

@ -135,22 +135,22 @@ void KNetStatsView::updateViewOptions() {
void KNetStatsView::updateStats() { void KNetStatsView::updateStats() {
FILE* flags_fp = fopen((mSysDevPath+"flags").latin1(), "r"); FILE* flags_fp = fopen((mSysDevPath+"flags").latin1(), "r");
bool currenttqStatus; bool currentStatus;
if (!flags_fp) if (!flags_fp)
currenttqStatus = false; currentStatus = false;
else { else {
int flags; int flags;
fscanf(flags_fp, "%Xu", &flags); fscanf(flags_fp, "%Xu", &flags);
fclose(flags_fp); fclose(flags_fp);
currenttqStatus = IFF_UP & flags; currentStatus = IFF_UP & flags;
} }
if (!currenttqStatus && mConnected) { // interface down... if (!currentStatus && mConnected) { // interface down...
mConnected = false; mConnected = false;
resetBuffers(); resetBuffers();
TQWidget::update(); TQWidget::update();
say(i18n("%1 is inactive").tqarg(mInterface)); say(i18n("%1 is inactive").tqarg(mInterface));
} else if (currenttqStatus && !mConnected) { } else if (currentStatus && !mConnected) {
mConnected = true; mConnected = true;
say(i18n("%1 is active").tqarg(mInterface)); say(i18n("%1 is active").tqarg(mInterface));
} }

@ -37,9 +37,9 @@ Statistics::Statistics( KNetStatsView* parent, const char *name )
l->setAutoAdd( true ); l->setAutoAdd( true );
Chart* chart = new Chart(mChart, parent->speedHistoryTx(), parent->speedHistoryRx(), parent->historyBufferSize(), parent->historyPointer(), parent->maxSpeed()); Chart* chart = new Chart(mChart, parent->speedHistoryTx(), parent->speedHistoryRx(), parent->historyBufferSize(), parent->historyPointer(), parent->maxSpeed());
mMAC->setText(mParent->readInterfaceStringValue("address", 18)); mMAC->setText(mParent->readInterfaceStringValue("address", 18));
mIP->tqsetAlignment(TQt::AlignRight); mIP->setAlignment(TQt::AlignRight);
mMAC->tqsetAlignment(TQt::AlignRight); mMAC->setAlignment(TQt::AlignRight);
mNetmask->tqsetAlignment(TQt::AlignRight); mNetmask->setAlignment(TQt::AlignRight);
update(); update();
mTimer = new TQTimer( this ); mTimer = new TQTimer( this );

@ -67,7 +67,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>41</height> <height>41</height>
@ -173,7 +173,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>71</width> <width>71</width>
<height>20</height> <height>20</height>
@ -315,7 +315,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>200</width> <width>200</width>
<height>21</height> <height>21</height>
@ -332,7 +332,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>51</width> <width>51</width>
<height>80</height> <height>80</height>
@ -428,7 +428,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>91</width> <width>91</width>
<height>20</height> <height>20</height>

Loading…
Cancel
Save