From aa056d16a0bed859dbe23dc93a7220181b216634 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 10 Sep 2002 22:18:48 +0000 Subject: Compile fix for Qtopia1.6 selected() -> selectedDocument() CCMAIL leseb@handhelds.org --- (limited to 'noncore') diff --git a/noncore/graphics/drawpad/importdialog.cpp b/noncore/graphics/drawpad/importdialog.cpp index 0783ed8..1c447cb 100644 --- a/noncore/graphics/drawpad/importdialog.cpp +++ b/noncore/graphics/drawpad/importdialog.cpp @@ -67,7 +67,9 @@ ImportDialog::~ImportDialog() const DocLnk* ImportDialog::selected() { - return m_pFileSelector->selected(); + // FIXME change from pointer to reference -zecke + DocLnk *lnk = new DocLnk( m_pFileSelector->selectedDocument() ); + return lnk; } void ImportDialog::fileChanged() @@ -79,7 +81,7 @@ void ImportDialog::fileChanged() void ImportDialog::preview() { - const DocLnk* docLnk = m_pFileSelector->selected(); + const DocLnk* docLnk = selected(); if (docLnk) { QImage image(docLnk->file()); -- cgit v0.9.0.2