Drop TQT_NO_COMPAT code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/12/head
Michele Calgaro 1 year ago
parent b60f756596
commit 9d83393cc1
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -13,9 +13,6 @@ link_directories(
${TDE_LIB_DIR} ${TDE_LIB_DIR}
) )
add_definitions( -UTQT_NO_COMPAT
)
##### kcm_knetworkconfmodule (kpart) ############ ##### kcm_knetworkconfmodule (kpart) ############

@ -2,9 +2,6 @@
#INCLUDES= $(all_includes) #INCLUDES= $(all_includes)
AM_CPPFLAGS = $(all_includes) AM_CPPFLAGS = $(all_includes)
# We use deprecated routines in QButton, undefine TQT_NO_COMPAT.
KDE_CXXFLAGS = -UTQT_NO_COMPAT
METASOURCES = AUTO METASOURCES = AUTO
#bin_PROGRAMS = knetworkconf #bin_PROGRAMS = knetworkconf

@ -150,13 +150,6 @@ void KAddDeviceContainer::verifyDeviceInfoSlot()
} }
} }
void KAddDeviceContainer::makeButtonsResizeable()
{
kpbApply->setAutoResize(true);
kpbAdvanced->setAutoResize(true);
kpbCancel->setAutoResize(true);
}
bool KAddDeviceContainer::modified() bool KAddDeviceContainer::modified()
{ {
return _modified; return _modified;

@ -61,9 +61,6 @@ class KAddDeviceContainer : public KDialog
bool modified(); bool modified();
bool advanced(); bool advanced();
private:
void makeButtonsResizeable();
protected: protected:
TQVBoxLayout* mainLayout; TQVBoxLayout* mainLayout;
TQHBoxLayout* buttonsLayout; TQHBoxLayout* buttonsLayout;

@ -149,7 +149,6 @@
</includes> </includes>
<Q_SLOTS> <Q_SLOTS>
<slot access="private">validateAddressSlot()</slot> <slot access="private">validateAddressSlot()</slot>
<slot access="private">makeButtonsResizeable()</slot>
</Q_SLOTS> </Q_SLOTS>
<functions> <functions>
<function specifier="non virtual">setAddingAlias( bool add )</function> <function specifier="non virtual">setAddingAlias( bool add )</function>

@ -25,7 +25,6 @@ void KAddDNSServerDlg::init()
{ {
_modified2 = false; _modified2 = false;
addingAlias = false; addingAlias = false;
makeButtonsResizeable();
} }
void KAddDNSServerDlg::validateAddressSlot() void KAddDNSServerDlg::validateAddressSlot()
@ -55,10 +54,3 @@ void KAddDNSServerDlg::validateAddressSlot()
} }
} }
} }
void KAddDNSServerDlg::makeButtonsResizeable()
{
kpbAddServer->setAutoResize(true);
kpbCancel->setAutoResize(true);
}

@ -280,7 +280,6 @@
</includes> </includes>
<Q_SLOTS> <Q_SLOTS>
<slot access="private">validateAddressSlot()</slot> <slot access="private">validateAddressSlot()</slot>
<slot access="private">makeButtonsResizeable()</slot>
<slot access="private">editHostSlot()</slot> <slot access="private">editHostSlot()</slot>
<slot access="private">removeHostSlot()</slot> <slot access="private">removeHostSlot()</slot>
<slot access="private">addHostSlot()</slot> <slot access="private">addHostSlot()</slot>

@ -16,7 +16,6 @@ bool _modifiedhost;
void KAddKnownHostDlg::init() void KAddKnownHostDlg::init()
{ {
_modifiedhost = false; _modifiedhost = false;
makeButtonsResizeable();
} }
void KAddKnownHostDlg::validateAddressSlot() void KAddKnownHostDlg::validateAddressSlot()
{ {
@ -37,16 +36,6 @@ void KAddKnownHostDlg::validateAddressSlot()
} }
void KAddKnownHostDlg::makeButtonsResizeable()
{
kpbAdd->setAutoResize(true);
kpbCancel->setAutoResize(true);
kpbAddHost->setAutoResize(true);
kpbEditHost->setAutoResize(true);
kpbRemoveHost->setAutoResize(true);
}
bool KAddKnownHostDlg::modified() bool KAddKnownHostDlg::modified()
{ {
return _modifiedhost; return _modifiedhost;

@ -23,7 +23,6 @@
KNetworkConf::KNetworkConf(TQWidget *parent, const char *name) : DCOPObject("KNetworkConfIface"), KNetworkConfDlg(parent, name) KNetworkConf::KNetworkConf(TQWidget *parent, const char *name) : DCOPObject("KNetworkConfIface"), KNetworkConfDlg(parent, name)
{ {
netInfo = 0L; netInfo = 0L;
makeButtonsResizeable();
config = new KNetworkConfigParser(); config = new KNetworkConfigParser();
klvCardList->setAllColumnsShowFocus(true); klvCardList->setAllColumnsShowFocus(true);
klvKnownHosts->setAllColumnsShowFocus(true); klvKnownHosts->setAllColumnsShowFocus(true);
@ -810,20 +809,6 @@ bool KNetworkConf::valuesChanged(KNetworkInterface *dev,
return false; return false;
} }
/** Sets the TQPushButton::autoResize() in true for all buttons. */
void KNetworkConf::makeButtonsResizeable(){
kpbConfigureNetworkInterface->setAutoResize(true);
kcbGwDevice->setAutoResize(true);
kpbAddDomainServer->setAutoResize(true);
kpbEditDomainServer->setAutoResize(true);
kpbRemoveDomainServer->setAutoResize(true);
kpbUpButton->setAutoResize(true);
kpbDownButton->setAutoResize(true);
kpbAddKnownHost->setAutoResize(true);
kpbEditKnownHost->setAutoResize(true);
kpbRemoveKnownHost->setAutoResize(true);
}
void KNetworkConf::enableInterfaceSlot() void KNetworkConf::enableInterfaceSlot()
{ {
if (modified) { if (modified) {

@ -175,8 +175,6 @@ class KNetworkConf : public KNetworkConfDlg, public DCOPObject
TQString broadcast); TQString broadcast);
/** Returns a list of strings of all the configured devices. */ /** Returns a list of strings of all the configured devices. */
TQStringList getDeviceList(); TQStringList getDeviceList();
/** Sets the TQPushButton::autoResize() in true for all buttons. */
void makeButtonsResizeable();
/** Adds a new host to the TDEListView that has the known hosts. */ /** Adds a new host to the TDEListView that has the known hosts. */
void addKnownHostSlot(); void addKnownHostSlot();

@ -72,9 +72,6 @@
<property name="text"> <property name="text">
<string>&amp;OK</string> <string>&amp;OK</string>
</property> </property>
<property name="autoResize">
<bool>true</bool>
</property>
</widget> </widget>
<widget class="TQLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">

@ -79,8 +79,6 @@ void pkgOptions::setupWidgets(TQPtrList<param> &pars)
f.setBold(true); f.setBold(true);
f.setPointSize(f.pointSize()+6); f.setPointSize(f.pointSize()+6);
title->setFont(f); title->setFont(f);
// title->setAutoResize(TRUE);
// title->update();
installButton = new TQPushButton(insType,this); installButton = new TQPushButton(insType,this);
cancelButton = new KPushButton(KStdGuiItem::cancel(),this); cancelButton = new KPushButton(KStdGuiItem::cancel(),this);

@ -37,8 +37,6 @@ Modal::Modal(TQString msg, TQWidget *parent, const char * name )
{ {
TQLabel *line1 = new TQLabel(msg,this); TQLabel *line1 = new TQLabel(msg,this);
line1->setAlignment(AlignCenter); line1->setAlignment(AlignCenter);
line1->setAutoResize(true);
} }
void Modal::terminate() void Modal::terminate()

Loading…
Cancel
Save