summaryrefslogtreecommitdiffstats
path: root/korganizer/resourceview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/resourceview.cpp')
-rw-r--r--korganizer/resourceview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/korganizer/resourceview.cpp b/korganizer/resourceview.cpp
index 0f2d0e13f..7b00a4611 100644
--- a/korganizer/resourceview.cpp
+++ b/korganizer/resourceview.cpp
@@ -19,8 +19,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include "resourceview.h"
@@ -96,9 +96,9 @@ ResourceViewFactory::ResourceViewFactory( CalendarResources *calendar, CalendarV
{
}
-CalendarViewExtension *ResourceViewFactory::create( TQWidget *parent )
+CalendarViewExtension *ResourceViewFactory::create( TQWidget *tqparent )
{
- mResourceView = new ResourceView( mCalendar, mCalendarView, parent );
+ mResourceView = new ResourceView( mCalendar, mCalendarView, tqparent );
TQObject::connect( mResourceView, TQT_SIGNAL( resourcesChanged() ),
mCalendarView, TQT_SLOT( resourcesChanged() ) );
@@ -127,10 +127,10 @@ ResourceView *ResourceViewFactory::resourceView() const
}
ResourceItem::ResourceItem( ResourceCalendar *resource, ResourceView *view,
- KListView *parent )
- : TQCheckListItem( parent, resource->resourceName(), CheckBox ),
+ KListView *tqparent )
+ : TQCheckListItem( tqparent, resource->resourceName(), CheckBox ),
mResource( resource ), mResourceView( view ), mBlockStateChange( false ),
- mIsSubresource( false ), mResourceIdentifier( TQString::null ),
+ mIsSubresource( false ), mResourceIdentifier( TQString() ),
mSubItemsCreated( false ), mIsStandardResource( false )
{
mResourceColor = TQColor();
@@ -164,8 +164,8 @@ void ResourceItem::createSubresourceItems()
}
ResourceItem::ResourceItem( ResourceCalendar *resource, const TQString &identifier,
- const TQString &label, ResourceView *view, ResourceItem *parent )
- : TQCheckListItem( parent, label, CheckBox ), mResource( resource ),
+ const TQString &label, ResourceView *view, ResourceItem *tqparent )
+ : TQCheckListItem( tqparent, label, CheckBox ), mResource( resource ),
mResourceView( view ), mBlockStateChange( false ), mIsSubresource( true ),
mSubItemsCreated( false ), mIsStandardResource( false )
{
@@ -258,8 +258,8 @@ void ResourceItem::paintCell(TQPainter *p, const TQColorGroup &cg,
ResourceView::ResourceView( CalendarResources *calendar,
- CalendarView *view, TQWidget *parent, const char *name )
- : CalendarViewExtension( parent, name ), mCalendar( calendar ), mCalendarView( view )
+ CalendarView *view, TQWidget *tqparent, const char *name )
+ : CalendarViewExtension( tqparent, name ), mCalendar( calendar ), mCalendarView( view )
{
TQBoxLayout *topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
@@ -368,12 +368,12 @@ void ResourceView::addResource()
if ( item && ( item->isSubresource() || item->resource()->canHaveSubresources() ) ) {
const TQString folderName =
KInputDialog::getText( i18n( "Add Subresource" ),
- i18n( "Please enter a name for the new subresource" ), TQString::null,
+ i18n( "Please enter a name for the new subresource" ), TQString(),
&ok, this );
if ( !ok )
return;
- const TQString parentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null;
- if ( !item->resource()->addSubresource( folderName, parentId ) ) {
+ const TQString tqparentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null;
+ if ( !item->resource()->addSubresource( folderName, tqparentId ) ) {
KMessageBox::error(
this,
i18n( "<qt>Unable to create subresource <b>%1</b>.</qt>" ).arg( folderName ) );
@@ -508,7 +508,7 @@ void ResourceView::slotSubresourceRemoved( ResourceCalendar *resource,
void ResourceView::closeResource( ResourceCalendar *resource )
{
- if ( mResourcesToClose.find( resource ) >= 0 ) {
+ if ( mResourcesToClose.tqfind( resource ) >= 0 ) {
resource->close();
mResourcesToClose.remove( resource );
}