Changeset View
Changeset View
Standalone View
Standalone View
kpThumbnail.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
88 | #endif | 88 | #endif | ||
89 | 89 | | |||
90 | if (d->view == view) | 90 | if (d->view == view) | ||
91 | return; | 91 | return; | ||
92 | 92 | | |||
93 | 93 | | |||
94 | if (d->view) | 94 | if (d->view) | ||
95 | { | 95 | { | ||
96 | disconnect (d->view, SIGNAL (destroyed()), | 96 | disconnect (d->view, &kpThumbnailView::destroyed, | ||
97 | this, SLOT (slotViewDestroyed())); | 97 | this, &kpThumbnail::slotViewDestroyed); | ||
98 | disconnect (d->view, SIGNAL (zoomLevelChanged(int,int)), | 98 | | ||
99 | this, SLOT (updateCaption())); | 99 | disconnect (d->view, &kpThumbnailView::zoomLevelChanged, | ||
100 | this, &kpThumbnail::updateCaption); | ||||
100 | 101 | | |||
101 | d->lay->removeWidget (d->view); | 102 | d->lay->removeWidget (d->view); | ||
102 | } | 103 | } | ||
103 | 104 | | |||
104 | d->view = view; | 105 | d->view = view; | ||
105 | 106 | | |||
106 | if (d->view) | 107 | if (d->view) | ||
107 | { | 108 | { | ||
108 | connect (d->view, SIGNAL (destroyed()), | 109 | connect (d->view, &kpThumbnailView::destroyed, | ||
109 | this, SLOT (slotViewDestroyed())); | 110 | this, &kpThumbnail::slotViewDestroyed); | ||
110 | connect (d->view, SIGNAL (zoomLevelChanged(int,int)), | 111 | | ||
111 | this, SLOT (updateCaption())); | 112 | connect (d->view, &kpThumbnailView::zoomLevelChanged, | ||
113 | this, &kpThumbnail::updateCaption); | ||||
112 | 114 | | |||
113 | Q_ASSERT (d->view->parent () == this); | 115 | Q_ASSERT (d->view->parent () == this); | ||
114 | d->lay->addWidget (d->view, Qt::AlignCenter); | 116 | d->lay->addWidget (d->view, Qt::AlignCenter); | ||
115 | 117 | | |||
116 | d->view->show (); | 118 | d->view->show (); | ||
117 | } | 119 | } | ||
118 | 120 | | |||
119 | updateCaption (); | 121 | updateCaption (); | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |