summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2002-09-10 22:18:48 (UTC)
committer zecke <zecke>2002-09-10 22:18:48 (UTC)
commitaa056d16a0bed859dbe23dc93a7220181b216634 (patch) (side-by-side diff)
tree52942f64e98ab217600e31df61d6b9ecdf1db3a7 /noncore
parent26ef77469fd6452450eb18e12e231d471673dca8 (diff)
downloadopie-aa056d16a0bed859dbe23dc93a7220181b216634.zip
opie-aa056d16a0bed859dbe23dc93a7220181b216634.tar.gz
opie-aa056d16a0bed859dbe23dc93a7220181b216634.tar.bz2
Compile fix for Qtopia1.6
selected() -> selectedDocument() CCMAIL leseb@handhelds.org
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/importdialog.cpp6
1 files changed, 4 insertions, 2 deletions
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());