Either git-formatted patch or a pull request would work.

On Mon, Dec 21, 2015 at 11:36 AM, lucasw lucasw@users.sf.net wrote:


[patches:#2] Scrolling in main window

Status: open
Group: Unstable (example)
Created: Mon Dec 21, 2015 07:36 PM UTC by lucasw
Last Updated: Mon Dec 21, 2015 07:36 PM UTC
Owner: nobody

I have a patch for a working scroll area:

diff --git a/src/mainWindow.cpp b/src/mainWindow.cpp
index e124c13..1a0cc8e 100644
--- a/src/mainWindow.cpp
+++ b/src/mainWindow.cpp
@@ -137,12 +137,9 @@ MainWindow MainWindow::openFile(const char fileName)
str.append(fileName);
mw->setWindowTitle(str);

//QScrollArea sv = new QScrollArea(mw);
//QWidget sv = new QWidget(m
w);
QWidget grid = new QWidget(mw);
QGridLayout
gridLayout = new QGridLayout();
grid->setLayout(gridLayout);

//sv->setWidget(grid);

QLabel l = new QLabel("driver", grid);
gridLayout->addWidget(l, 0, 0);
@@ -226,7 +223,11 @@ MainWindow MainWindow::openFile(const char fileName)
}
}
mw->setCentralWidget(grid);
QScrollArea
sv = new QScrollArea(mw);
sv->setWidget(grid);
sv->setBackgroundRole(QPalette::Light);
sv->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
mw->setCentralWidget(sv);
mw->setVisible(true);
return mw;
}

I have this on github in https://github.com/lucasw/v4l2ucp, but is the right
thing to do here to fork within sourceforge and do a merge request here?


Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/v4l2ucp/patches/2/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

 

Related

Patches: #2