summaryrefslogtreecommitdiffstats
path: root/src/gui/connectionFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/connectionFrame.cpp')
-rw-r--r--src/gui/connectionFrame.cpp31
1 files changed, 5 insertions, 26 deletions
diff --git a/src/gui/connectionFrame.cpp b/src/gui/connectionFrame.cpp
index 4211a50..32e20f7 100644
--- a/src/gui/connectionFrame.cpp
+++ b/src/gui/connectionFrame.cpp
@@ -443,32 +443,11 @@ void ConnectionFrame::mouseMoveEvent(QMouseEvent *event)
void ConnectionFrame::paintCloseUp(int w, int h)
{
-
-
- if (!_frame->image().isNull())
- {
- /*this->setFixedWidth(w);
- _conFrameTaskbar->setMaximumWidth(w);
- resize(w, h);*/
- resizeComponent(w, h);
- setMaximumSize(w,h);
- resize(w, h);
- }
- else
- {
- std::cout << "pixel is NULL" << std::endl;
- }
-
-}
-
-void ConnectionFrame::resizeComponent(int w, int h)
-{
- int th = (h*_conFrameTaskbar->width())/w;
- int uh = (h*_ip->width())/w;
- //_conFrameTaskbar->setMaximumSize(w, th);
- //_conFrameTaskbar->resize(w, th);
- _ip->setMaximumSize(w, uh);
- _ip->resize(w,uh);
+ if (!_frame->image().isNull())
+ {
+ //move(0,0);
+ resize(w, h);
+ }
}
void ConnectionFrame::setSource()